diff options
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 5 |
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() |