mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 12:23:48 +01:00
Show what line an error occured on by default
This commit is contained in:
parent
3f23a7f041
commit
61e50ff3cf
@ -73,6 +73,9 @@ function createBoardlist($mod=false) {
|
|||||||
|
|
||||||
function error($message, $priority = true, $debug_stuff = false) {
|
function error($message, $priority = true, $debug_stuff = false) {
|
||||||
global $board, $mod, $config, $db_error;
|
global $board, $mod, $config, $db_error;
|
||||||
|
|
||||||
|
if (isset($debug_stuff['file']))
|
||||||
|
$message .= " {$debug_stuff['file']}";
|
||||||
|
|
||||||
if ($config['syslog'] && $priority !== false) {
|
if ($config['syslog'] && $priority !== false) {
|
||||||
// Use LOG_NOTICE instead of LOG_ERR or LOG_WARNING because most error message are not significant.
|
// Use LOG_NOTICE instead of LOG_ERR or LOG_WARNING because most error message are not significant.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user