X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/5174fa9bd71e4f671d9788707e106296638a3c63..1a16acdc7bbf0f471ee002a364ecfa980f191379:/src/T/log.php diff --git a/src/T/log.php b/src/T/log.php index e7c5c2d..7941f63 100644 --- a/src/T/log.php +++ b/src/T/log.php @@ -14,7 +14,7 @@ function logsdie($str, $level = CRITICAL) { function logs($str, $level = INFO) { global $LOGLEVEL, $LOGFP, $argv; - if ($str and $LOGLEVEL & $level) { + if ($str and ($LOGLEVEL & $level) == $level) { fputs($LOGFP, sprintf("%s %s[%d] %-8s %s\n", strftime('%c'), basename($argv[0]), getmypid(), loglevel2str($level), $str)); }