Skip to content
Snippets Groups Projects
Commit 1c34bba0 authored by hahn's avatar hahn
Browse files

fix appmonitor request with foreman

parent 5f53085a
No related branches found
No related tags found
1 merge request!235534 add docker
......@@ -154,7 +154,7 @@ class ForemanApi {
*/
protected function log($sMessage, $sLevel = "info") {
global $oCLog;
return $oCLog->add(basename(__FILE__) . " class " . __CLASS__ . " - " . $sMessage, $sLevel);
return $oCLog ? $oCLog->add(basename(__FILE__) . " class " . __CLASS__ . " - " . $sMessage, $sLevel) : false;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment