1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 01:24:05 +01:00

Show what line an error occured on by default

This commit is contained in:
8chan 2015-02-16 16:34:45 -08:00
parent 3f23a7f041
commit 61e50ff3cf

View File

@ -74,6 +74,9 @@ function createBoardlist($mod=false) {
function error($message, $priority = true, $debug_stuff = false) {
global $board, $mod, $config, $db_error;
if (isset($debug_stuff['file']))
$message .= " {$debug_stuff['file']}";
if ($config['syslog'] && $priority !== false) {
// Use LOG_NOTICE instead of LOG_ERR or LOG_WARNING because most error message are not significant.
_syslog($priority !== true ? $priority : LOG_NOTICE, $message);