Commit ccba3e2b authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

camogm debug file with debug level enabled

parent e876c1b1
......@@ -50,7 +50,19 @@ switch($cmd){
echo $res;
break;
case "camogm_debug":
exec("echo 'debug=/tmp/camogm.log;debuglev=6' > /var/state/camogm_cmd");
if (isset($_GET['debuglev'])){
$debuglev = $_GET['debuglev'];
}else{
$debuglev = 3;
}
if (isset($_GET['debug'])){
$debug = $_GET['debug'];
}else{
$debug = "/tmp/camogm.log";
}
exec("echo 'debug=$debug;debuglev=$debuglev' > /var/state/camogm_cmd");
echo "$cmd ok";
break;
case "camogm_kill":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment