X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ftext.php;h=5c9202c580893a0895e3fb806b2c3d050fe71ce4;hb=5e188a9250d42a82cd6b8e84d65875f3bc6067fb;hp=1b3050f5fe8b275241b3cd270ffa58a9616a0745;hpb=6601e8c2b74f0ebd4e224713e7feadbe9b09d330;p=friendica.git diff --git a/include/text.php b/include/text.php index 1b3050f5fe..5c9202c580 100644 --- a/include/text.php +++ b/include/text.php @@ -707,9 +707,6 @@ function logger($msg, $level = 0) { if ( $a->module == 'install' || ! ($db && $db->connected) - || ! $debugging - || ! $logfile - || $level > $loglevel ) { return; } @@ -718,6 +715,14 @@ function logger($msg, $level = 0) { $logfile = get_config('system','logfile'); $loglevel = intval(get_config('system','loglevel')); + if ( + ! $debugging + || ! $logfile + || $level > $loglevel + ) { + return; + } + if (count($LOGGER_LEVELS) == 0) { foreach (get_defined_constants() as $k => $v) { if (substr($k, 0, 7) == "LOGGER_") {