From de75ba60a58e87778551a7a7258352a4cc30fddc Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 25 Mar 2019 22:07:12 +0100 Subject: api/taskman: Improve logging --- apis/init.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apis') diff --git a/apis/init.inc.php b/apis/init.inc.php index e0dcf707..8641fecd 100644 --- a/apis/init.inc.php +++ b/apis/init.inc.php @@ -10,6 +10,10 @@ if (($report = Request::get('crashreport', false, 'string')) !== false) { $details = file_get_contents($report); EventLog::failure('Problems during bootup hook', $details); exit(0); +} elseif (($report = Request::get('logreport', false, 'string')) !== false) { + $details = file_get_contents($report); + EventLog::info('Messages during bootup hook', $details); + exit(0); } Event::systemBooted(); -- cgit v1.2.3-55-g7522