Commits

a4z  committed 742e93c

debug functions only for debug

  • Participants
  • Parent commits 69f97fd

Comments (0)

Files changed (2)

File src/cli/featurex.cpp

 void runFx()
 {
   
-  Log::AppMessage() << __PRETTY_FUNCTION__ << "\n";
+
+  Log::AppMessage() << " internal test function " << __PRETTY_FUNCTION__ << "\n";
+
+#ifndef DEBUG
+  Log::AppMessage() << "not enabled in non debug builds\n";
+  return;
+#endif
 
   using namespace a4sqlt3;
   Dataset rs_cnt, rs_files ;

File src/cli/report.cpp

   }
 };
 
-
+#ifdef DEBUG
 void printTree(ReportTree& tree)
 {
 
        for(int i = 0; i < level; ++i)
             std::cout << " " ;
 
-      std::cout << node.first << "\n";
+      LogDebug() << node.first << "\n";
       printChild(node.second, level+2);
     }
 
 
   for( auto elem : tree.node )
   {
-    std::cout << elem.first << std::endl;
+      LogDebug() << elem.first << std::endl;
     printChild(elem.second, 2) ;
   }
 }
+#endif // DEBUG
 //--------------------------------------------------------------------------------------------------