From 80b13bb9ba6f013d6c73546b464fc8923f3c700b Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 5 Mar 2005 21:14:43 +0000 Subject: [PATCH] Bugfix en niveles de log. --- src/T/general.php | 2 +- src/T/log.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)); } -- 2.43.0