Skip to content
Snippets Groups Projects
Commit 3260ffa8 authored by alvaro's avatar alvaro
Browse files

missing check if debug flag was on before logging

parent 5132920e
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,9 @@ class ServiceModule extends abstractModule{
Utils::processDocument($viewFile, $lodspk, $results);
}catch (Exception $ex){
echo $ex->getMessage();
Logging::log($ex->getMessage(), E_ERROR);
if($conf['debug']){
Logging::log($ex->getMessage(), E_ERROR);
}
HTTPStatus::send500($uri);
}
}
......
......@@ -185,7 +185,9 @@ public function execute($pair){
$lodspk['transform_select_query'] = true;
$objResult['viewFile'] = null;
}
Logging::log("LODSPeaKr can't find the proper query. Using HTML query instead.", E_USER_NOTICE);
if($conf['debug']){
Logging::log("LODSPeaKr can't find the proper query. Using HTML query instead.", E_USER_NOTICE);
}
break;
}
}
......
......@@ -155,7 +155,9 @@ class TypeModule extends abstractModule{
$lodspk['transform_select_query'] = true;
$objResult['viewFile'] = null;
}
Logging::log("LODSPeaKr can't find the proper query. Using HTML query instead.", E_USER_NOTICE);
if($conf['debug']){
Logging::log("LODSPeaKr can't find the proper query. Using HTML query instead.", E_USER_NOTICE);
}
break;
}else{
$found = false;
......
......@@ -120,8 +120,7 @@ class UriModule extends abstractModule{
}
//chdir($conf['home']);
if($conf['debug']){
Logging::log("Using template ".$viewFile, E_USER_NOTICE);
echo("TEMPLATE: ".$viewFile."\n\n");
Logging::log("Using template ".$viewFile);
}
Utils::processDocument($viewFile, $lodspk, $resultsObj);
......
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