Remove useless debug output (log at info level)
authorPerttu Ahola <celeron55@gmail.com>
Sun, 11 Mar 2012 13:23:30 +0000 (15:23 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 11 Mar 2012 13:23:30 +0000 (15:23 +0200)
src/debug.cpp
src/main.cpp
src/porting.cpp

index fb04ba9523510b0ef5b5f0196eb13d88965338dc..a197913a964dfd229698ad332d63398885a9aa42 100644 (file)
@@ -44,9 +44,6 @@ void debugstreams_init(bool disable_stderr, const char *filename)
                fprintf(g_debugstreams[1],     "  Separator  \n");
                fprintf(g_debugstreams[1],     "-------------\n\n");
        }
-       
-       DEBUGPRINT("Debug streams initialized, %s\n",
-                       disable_stderr?"not printing on stderr":"using stderr");
 }
 
 void debugstreams_deinit()
index b1849e4a770977c1cb744cfc6005289cf4da1958..1b4047de76d31876b81fd8ec7dedc242544bd1c0 100644 (file)
@@ -861,9 +861,9 @@ int main(int argc, char *argv[])
 
        DSTACK(__FUNCTION_NAME);
 
-       dstream<<"logfile    = "<<logfile<<std::endl;
-       dstream<<"path_share = "<<porting::path_share<<std::endl;
-       dstream<<"path_user  = "<<porting::path_user<<std::endl;
+       infostream<<"logfile    = "<<logfile<<std::endl;
+       infostream<<"path_share = "<<porting::path_share<<std::endl;
+       infostream<<"path_user  = "<<porting::path_user<<std::endl;
 
        // Debug handler
        BEGIN_DEBUG_EXCEPTION_HANDLER
index 57da69e8292090c147c4d36cb8e7f7fd0de47192..f2ca601eb3098ad0d0a4dec210249b91c112a697 100644 (file)
@@ -27,6 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "config.h"
 #include "debug.h"
 #include "filesys.h"
+#include "log.h"
 
 #ifdef __APPLE__
        #include "CoreFoundation/CoreFoundation.h"
@@ -149,7 +150,7 @@ void initializePaths()
                Use relative paths if RUN_IN_PLACE
        */
 
-       dstream<<"Using relative paths (RUN_IN_PLACE)"<<std::endl;
+       infostream<<"Using relative paths (RUN_IN_PLACE)"<<std::endl;
 
        /*
                Windows
@@ -204,7 +205,7 @@ void initializePaths()
                Use platform-specific paths otherwise
        */
 
-       dstream<<"Using system-wide paths (NOT RUN_IN_PLACE)"<<std::endl;
+       infostream<<"Using system-wide paths (NOT RUN_IN_PLACE)"<<std::endl;
 
        /*
                Windows