summaryrefslogtreecommitdiff
path: root/src/debug.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-01-26 17:13:19 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-01-26 17:13:19 +0200
commitbd100c5483eb77a27eeac4e476c81a1bf6afc710 (patch)
tree55de3858e460f349fbcad7f6a87d348c6fabfb5c /src/debug.cpp
parentadb7f248da9e4ec9350d1a05d50213ff3d3908d6 (diff)
downloadminetest-bd100c5483eb77a27eeac4e476c81a1bf6afc710.tar.gz
minetest-bd100c5483eb77a27eeac4e476c81a1bf6afc710.tar.bz2
minetest-bd100c5483eb77a27eeac4e476c81a1bf6afc710.zip
backing up some stuff
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index ca49c9b77..f267790fd 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -32,6 +32,8 @@ void debugstreams_init(bool disable_stderr, const char *filename)
{
if(disable_stderr)
g_debugstreams[0] = NULL;
+ else
+ g_debugstreams[0] = stderr;
if(filename)
g_debugstreams[1] = fopen(filename, "a");
@@ -42,6 +44,9 @@ 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, disable_stderr=%d\n",
+ disable_stderr);
}
void debugstreams_deinit()