diff options
author | Zach Copley <zach@status.net> | 2010-11-02 23:13:20 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-11-02 23:13:20 +0000 |
commit | 764a297383ad8160b3e4d645d8953ef46a541b09 (patch) | |
tree | 0fd2d304c4ba81d6775408f49c070b82c6073635 /lib/util.php | |
parent | 5ccc548bbcdd62e1b6aba3cd79372b4ace12d16b (diff) |
Output filename in log msg if one is supplied
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index d50fa2081..47e52c915 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1499,6 +1499,7 @@ function common_request_id() function common_log($priority, $msg, $filename=null) { if(Event::handle('StartLog', array(&$priority, &$msg, &$filename))){ + $msg = (empty($filename)) ? $msg : basename($filename) . ' - ' . $msg; $msg = '[' . common_request_id() . '] ' . $msg; $logfile = common_config('site', 'logfile'); if ($logfile) { |