X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/5174fa9bd71e4f671d9788707e106296638a3c63..6d9d73dd6c11ccefe95eae63566c74e40ba0b1cf:/src/T/log.php?ds=sidebyside 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)); }