@@ -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