From d6785472313d59eea6fec8bb144743240fa5b79f Mon Sep 17 00:00:00 2001 From: Enzo Angiulli Date: Tue, 24 Nov 2020 00:27:44 +0100 Subject: [PATCH] added (some) logging --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 7105f75..f435fc4 100644 --- a/index.php +++ b/index.php @@ -158,7 +158,9 @@ $f3->route('GET /cron', function($f3) { } } 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']); } }