Skip to content

Commit 8137f7f

Browse files
committed
change log level
1 parent 4d92a76 commit 8137f7f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

app/Console/Commands/ImportFramework.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ class ImportFramework extends Command
3131
*/
3232
public function handle()
3333
{
34-
Log::debug('ImportFramework - Start.');
34+
Log::info('ImportFramework - Start.');
3535

3636
$fileName = $this->argument('filename');
3737

3838
if (! file_exists($fileName)) {
3939
Log::error('ImportFramework - file does not exists');
4040
$this->components->error('File does not exists');
4141
} else {
42-
Log::debug('ImportFramework - Import ' . $fileName);
42+
Log::info('ImportFramework - Import ' . $fileName);
4343

4444
// XLSX
4545
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
@@ -78,6 +78,6 @@ public function handle()
7878
}
7979
}
8080

81-
Log::debug('ImportFramework - DONE.');
81+
Log::info('ImportFramework - DONE.');
8282
}
8383
}

app/Console/Commands/SendNotifications.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ class SendNotifications extends Command
3434
*/
3535
public function handle()
3636
{
37-
Log::debug('SendNotifications - Start.');
37+
Log::info('SendNotifications - Start.');
3838

3939
// Need to send notifications today ?
4040
if ($this->needCheck()) {
41-
Log::debug('SendNotifications - notifications today');
41+
Log::info('SendNotifications - notifications today');
4242

4343
$controls = Control
4444
::where('status', 0)
@@ -47,7 +47,7 @@ public function handle()
4747
->orderBy('plan_date')
4848
->count();
4949

50-
Log::debug(
50+
Log::info(
5151
'SendNotifications - ' .
5252
$controls .
5353
' control(s) will expire within '.
@@ -144,18 +144,18 @@ public function handle()
144144
$mail->send();
145145

146146
// Success
147-
Log::debug("Mail sent to {$user->email}");
147+
Log::info("Mail sent to {$user->email}");
148148
}
149149
}
150150
} catch (Exception $e) {
151151
// Log error
152152
Log::error("Message could not be sent. Mailer Error: {$mail->ErrorInfo}");
153153
}
154154
} else {
155-
Log::debug('SendNotifications - no notifications today');
155+
Log::info('SendNotifications - no notifications today');
156156
}
157157

158-
Log::debug('SendNotifications - DONE.');
158+
Log::info('SendNotifications - DONE.');
159159
}
160160

161161
/**
@@ -167,7 +167,7 @@ private function needCheck()
167167
{
168168
$check_frequency = config('deming.notification.frequency');
169169

170-
Log::debug('SendNotifications - frequency=' . $check_frequency . ' day=' . Carbon::today()->day . ' dayOfWeek=' . Carbon::today()->dayOfWeek);
170+
Log::info('SendNotifications - frequency=' . $check_frequency . ' day=' . Carbon::today()->day . ' dayOfWeek=' . Carbon::today()->dayOfWeek);
171171

172172
return ($check_frequency === '1') ||
173173
// Weekly

0 commit comments

Comments
 (0)