Skip to content
Snippets Groups Projects
Commit 2bb579ba authored by Jared Hancock's avatar Jared Hancock
Browse files

Merge pull request #754 from protich/feature/admin-alert


Limit admin alerts to logged messages.

Reviewed-By: default avatarJared Hancock <jared@osticket.com>
parents e99a10cd badfc6fb
No related branches found
No related tags found
No related merge requests found
......@@ -288,14 +288,14 @@ class osTicket {
$level=3; //Debug
}
//Alert admin if enabled...
if($alert)
$this->alertAdmin($title, $message);
//Logging everything during upgrade.
if($this->getConfig()->getLogLevel()<$level && !$force)
return false;
//Alert admin if enabled...
if($alert && $this->getConfig()->getLogLevel() >= $level)
$this->alertAdmin($title, $message);
//Save log based on system log level settings.
$loglevel=array(1=>'Error','Warning','Debug');
$sql='INSERT INTO '.SYSLOG_TABLE.' SET created=NOW(), updated=NOW() '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment