debugging
This commit is contained in:
6
moha.php
6
moha.php
@@ -33,6 +33,7 @@ $logFh = null; // filehandle of log file
|
||||
$curlErr = 0; // Number of errors returned by curl
|
||||
$configDir = "./config"; // default config dir (production value is /etc/moha/)
|
||||
$hooksInitialized = 0; // are all hooks initialized ? false/true
|
||||
$flagHooks = false;
|
||||
$mqttServerIp = "127.0.0.1"; // IP address of mqttserver in production mode
|
||||
if ($testMode)
|
||||
{
|
||||
@@ -264,9 +265,10 @@ while (true)
|
||||
}
|
||||
}
|
||||
$hooksInitialized = $i;
|
||||
}else
|
||||
}elseif($flagHooks === false)
|
||||
{
|
||||
logger(DEBUG,_("All hooks initialized"), __FILE__ . ":" . __LINE__);
|
||||
logger(DEBUG, _("All hooks initialized"), __FILE__ . ":" . __LINE__);
|
||||
$flagHooks = true;
|
||||
}
|
||||
checkEvents();
|
||||
askWebServer($read);
|
||||
|
Reference in New Issue
Block a user