mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 11:58:53 +00:00
log general errors in cron, images and when debug is enabled
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9924 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
b6690e51f9
commit
4e9ce7060e
2 changed files with 10 additions and 0 deletions
|
@ -3505,6 +3505,14 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
|||
$l_notify = '<p>Please notify the board administrator or webmaster: <a href="mailto:' . $config['board_contact'] . '">' . $config['board_contact'] . '</a></p>';
|
||||
}
|
||||
}
|
||||
|
||||
if (defined('DEBUG') || defined('IN_CRON') || defined('IMAGE_OUTPUT'))
|
||||
{
|
||||
// let's avoid loops
|
||||
$db->sql_return_on_error(true);
|
||||
add_log('critical', 'LOG_GENERAL_ERROR', $msg_title, $msg_text);
|
||||
$db->sql_return_on_error(false);
|
||||
}
|
||||
|
||||
garbage_collection();
|
||||
|
||||
|
|
|
@ -562,6 +562,8 @@ $lang = array_merge($lang, array(
|
|||
'LOG_FORUM_MOVE_UP' => '<strong>Moved forum</strong> %1$s <strong>above</strong> %2$s',
|
||||
'LOG_FORUM_SYNC' => '<strong>Re-synchronised forum</strong><br />» %s',
|
||||
|
||||
'LOG_GENERAL_ERROR' => '<strong>A general error occured</strong>: %1$s <br />» %2$s',
|
||||
|
||||
'LOG_GROUP_CREATED' => '<strong>New usergroup created</strong><br />» %s',
|
||||
'LOG_GROUP_DEFAULTS' => '<strong>Group “%1$s” made default for members</strong><br />» %2$s',
|
||||
'LOG_GROUP_DELETE' => '<strong>Usergroup deleted</strong><br />» %s',
|
||||
|
|
Loading…
Add table
Reference in a new issue