diff --git a/web/api/app/Controller/MonitorsController.php b/web/api/app/Controller/MonitorsController.php index 21ccf59ef..f83aecf97 100644 --- a/web/api/app/Controller/MonitorsController.php +++ b/web/api/app/Controller/MonitorsController.php @@ -182,7 +182,7 @@ class MonitorsController extends AppController { ) ) { if ( !defined('ZM_SERVER_ID')) { - Logger::Debug("Not defined ZM_SERVER_ID"); + ZM\Logger::Debug("Not defined ZM_SERVER_ID"); } $this->daemonControl($this->Monitor->id, 'start'); } @@ -387,7 +387,7 @@ class MonitorsController extends AppController { } $shellcmd = escapeshellcmd("$zm_path_bin/zmdc.pl $command $daemon $args"); - Logger::Debug("Command $shellcmd"); + ZM\Logger::Debug("Command $shellcmd"); $status = exec($shellcmd); $status_text .= $status."\n"; }