Browse Source

added (some) logging

master
Enzo Angiulli 4 years ago
parent
commit
d678547231
  1. 4
      index.php

4
index.php

@ -158,7 +158,9 @@ $f3->route('GET /cron', function($f3) {
} }
} }
foreach ($messages as $message) { foreach ($messages as $message) {
echo date('Y.m.d'). ' ' .$datestring . ' '. $message['message']; // echo date('Y.m.d'). ' ' .$datestring . ' '. $message['message'];
$logger = new Log('cron.log');
$logger->write( $message['message']);
} }
} }

Loading…
Cancel
Save