From: Leandro Lucarella Date: Sat, 5 Mar 2005 21:14:43 +0000 (+0000) Subject: Bugfix en niveles de log. X-Git-Tag: svn_import~75 X-Git-Url: https://git.llucax.com/software/sercom-old.git/commitdiff_plain/80b13bb9ba6f013d6c73546b464fc8923f3c700b Bugfix en niveles de log. --- diff --git a/src/T/general.php b/src/T/general.php index d4ce5ed..22d6ab7 100644 --- a/src/T/general.php +++ b/src/T/general.php @@ -100,6 +100,6 @@ require_once 'T/Intento.php'; unset($gconf); -logs("Iniciando {$argv[0]}..."); +logs('Iniciado'); ?> \ No newline at end of file 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)); }