logger : remove the [internal functions] (without file and line) from the logs
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2249 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -131,6 +131,8 @@ class logger
|
||||
$backtrace = debug_backtrace();
|
||||
for ($i = 0 ; $i <= $this->backTraceSkip ; $i++)
|
||||
$back = array_shift ($backtrace);
|
||||
while (! array_key_exists ("file", $back) && count ($backtrace) > 0)
|
||||
$back = array_shift ($backtrace);
|
||||
$msg = "";
|
||||
if (isset ($_SERVER["HTTP_X_FORWARDED_FOR"]))
|
||||
$msg .= "[".$_SERVER["HTTP_X_FORWARDED_FOR"]."] ";
|
||||
|
||||
Reference in New Issue
Block a user