Skip to content
Snippets Groups Projects
Commit 901616b6 authored by alvaro's avatar alvaro
Browse files

more debug checking

parent 3260ffa8
No related branches found
No related tags found
No related merge requests found
...@@ -127,7 +127,9 @@ class Importer{ ...@@ -127,7 +127,9 @@ class Importer{
}elseif($compType == LS."LodspeakrVisualComponent"){ }elseif($compType == LS."LodspeakrVisualComponent"){
$this->createViews($inputs); $this->createViews($inputs);
}else{ }else{
Logging::log("Component '$component' (of type $compType) not supported", E_USER_WARNING); if($conf['debug']){
Logging::log("Component '$component' (of type $compType) not supported", E_USER_WARNING);
}
} }
} }
$content .= "?>\n"; $content .= "?>\n";
......
...@@ -35,7 +35,9 @@ class MetaDb{ ...@@ -35,7 +35,9 @@ class MetaDb{
$db = NULL; $db = NULL;
}catch(Exception $e){ }catch(Exception $e){
echo "Can't write in SQLite database. Please check you have granted write permissions to <tt>meta/</tt> and <tt>meta/db.sqlite</tt>.<br/>Also you can check a list of <a href='https://github.com/alangrafu/lodspeakr/wiki/CommonErrors'>common errors</a> and how to <a href='https://github.com/alangrafu/lodspeakr/wiki/Wipe-out-the-database'>wipe out the database</a>'"; echo "Can't write in SQLite database. Please check you have granted write permissions to <tt>meta/</tt> and <tt>meta/db.sqlite</tt>.<br/>Also you can check a list of <a href='https://github.com/alangrafu/lodspeakr/wiki/CommonErrors'>common errors</a> and how to <a href='https://github.com/alangrafu/lodspeakr/wiki/Wipe-out-the-database'>wipe out the database</a>'";
Logging::log('Exception exec: '.$e->getMessage(), E_USER_ERROR); if($conf['debug']){
Logging::log('Exception exec: '.$e->getMessage(), E_USER_ERROR);
}
exit(1); exit(1);
} }
return $results; return $results;
......
...@@ -280,8 +280,10 @@ class Utils{ ...@@ -280,8 +280,10 @@ class Utils{
if($modelFile != "." && $modelFile != ".." && strpos($modelFile, ".") !== 0){ if($modelFile != "." && $modelFile != ".." && strpos($modelFile, ".") !== 0){
if(is_dir($modelFile)){ if(is_dir($modelFile)){
if(strpos('endpoint.', $modelFile) == 0){ if(strpos('endpoint.', $modelFile) == 0){
Logging::log("Save $modelFile for later, after all the queries in the current directory has been resolved", E_USER_NOTICE); if($conf['debug']){
$subDirs[]=$modelFile; Logging::log("Save $modelFile for later, after all the queries in the current directory has been resolved", E_USER_NOTICE);
}
$subDirs[]=$modelFile;
} }
}else{ }else{
if(preg_match('/\.query$/', $modelFile)){ if(preg_match('/\.query$/', $modelFile)){
......
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