Skip to content
Snippets Groups Projects
Commit 4b3ff161 authored by Alex's avatar Alex
Browse files

Add log to follow the progression of populate method

parent 5c21d066
No related branches found
No related tags found
1 merge request!1Include Wowa Training
Pipeline #5544 passed
......@@ -8,6 +8,8 @@ use Barryvdh\Debugbar\Facade;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Validator;
use Illuminate\Http\Request;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
class FeedbackController extends Controller
{
......@@ -134,7 +136,11 @@ class FeedbackController extends Controller
$feedback = new Feedback();
$feedback->report_id = $element->id;
$i = 0;
$logger = new Logger('populate-db');
$logger->pushHandler(new StreamHandler(__DIR__.'/../../storage/logs/populate.log', Logger::DEBUG));
while (($line = fgetcsv($file)) !== false) {
$logger->info("Element number " . $i . ". Element" . $line);
$i++;
if ($line[0] == $element->subject['id']) {
//var_dump($line[1]);
if ($line[1] == "0") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment