aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-11 15:23:30 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-11 15:23:30 +0200
commitf79082a46d5b2385ae5aebf9048d4ca8b87940c3 (patch)
tree0cc597ab0e03e9f62050f2681754ae579cc45253 /src
parente71d75ed9a8893b2ee67c6953ab633dd210c072c (diff)
downloadminetest-f79082a46d5b2385ae5aebf9048d4ca8b87940c3.tar.gz
minetest-f79082a46d5b2385ae5aebf9048d4ca8b87940c3.tar.bz2
minetest-f79082a46d5b2385ae5aebf9048d4ca8b87940c3.zip
Remove useless debug output (log at info level)
Diffstat (limited to 'src')
-rw-r--r--src/debug.cpp3
-rw-r--r--src/main.cpp6
-rw-r--r--src/porting.cpp5
3 files changed, 6 insertions, 8 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index fb04ba952..a197913a9 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -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()
diff --git a/src/main.cpp b/src/main.cpp
index b1849e4a7..1b4047de7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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
diff --git a/src/porting.cpp b/src/porting.cpp
index 57da69e82..f2ca601eb 100644
--- a/src/porting.cpp
+++ b/src/porting.cpp
@@ -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