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

logging: Add signal for log handling

parent 5537b648
No related branches found
No related tags found
No related merge requests found
......@@ -305,6 +305,14 @@ class osTicket {
$level=3; //Debug
}
$info = array(
'title' => &$title,
'level' => $loglevel[$level],
'level_id' => $level,
'body' => &$message,
);
Signal::send('syslog', null, $info);
//Logging everything during upgrade.
if($this->getConfig()->getLogLevel()<$level && !$force)
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment