X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ftext.php;h=5c9202c580893a0895e3fb806b2c3d050fe71ce4;hb=5e188a9250d42a82cd6b8e84d65875f3bc6067fb;hp=4b2a4a9409f4254a89f8ecb4f2230bcd9e451005;hpb=967ecb42053dd5bd2b7d66435641ae865c54066b;p=friendica.git diff --git a/include/text.php b/include/text.php index 4b2a4a9409..5c9202c580 100644 --- a/include/text.php +++ b/include/text.php @@ -703,15 +703,20 @@ function logger($msg, $level = 0) { global $db; global $LOGGER_LEVELS; + // turn off logger in install mode + if ( + $a->module == 'install' + || ! ($db && $db->connected) + ) { + return; + } + $debugging = get_config('system','debugging'); $logfile = get_config('system','logfile'); $loglevel = intval(get_config('system','loglevel')); - // turn off logger in install mode if ( - $a->module == 'install' - || ! ($db && $db->connected) - || ! $debugging + ! $debugging || ! $logfile || $level > $loglevel ) {