summaryrefslogtreecommitdiffstats
path: root/apis
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-25 22:07:12 +0100
committerSimon Rettberg2019-03-25 22:07:12 +0100
commitde75ba60a58e87778551a7a7258352a4cc30fddc (patch)
tree762f56cb576e6e4bbbd601252e46ae020f93b82c /apis
parent[inc/Event] autoUpdateIp first thing on bootup (diff)
downloadslx-admin-de75ba60a58e87778551a7a7258352a4cc30fddc.tar.gz
slx-admin-de75ba60a58e87778551a7a7258352a4cc30fddc.tar.xz
slx-admin-de75ba60a58e87778551a7a7258352a4cc30fddc.zip
api/taskman: Improve logging
Diffstat (limited to 'apis')
-rw-r--r--apis/init.inc.php4
1 files changed, 4 insertions, 0 deletions
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();