diff --git a/lib/util.php b/lib/util.php index d50fa20814..47e52c9152 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) {