From 64d44b6ffeffcc3324c3b717f59401af5384cd0f Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 4 Apr 2005 00:59:37 +0000 Subject: [PATCH] =?utf8?q?Se=20mejora=20el=20log=20para=20que=20sea=20m?= =?utf8?q?=C3=A1s=20consistente=20con=20el=20de=20python.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/T/log.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/T/log.php b/src/T/log.php index 7941f63..4511b26 100644 --- a/src/T/log.php +++ b/src/T/log.php @@ -16,7 +16,8 @@ function logs($str, $level = INFO) { global $LOGLEVEL, $LOGFP, $argv; if ($str and ($LOGLEVEL & $level) == $level) { fputs($LOGFP, sprintf("%s %s[%d] %-8s %s\n", strftime('%c'), - basename($argv[0]), getmypid(), loglevel2str($level), $str)); + substr(basename($argv[0]), 3), getmypid(), + loglevel2str($level), $str)); } } -- 2.43.0