reenable debug
[enigma2.git] / lib / base / eerror.cpp
index 2182df49cd252bcddda810783cca571141ee0212..39c786233117cc19490db5e598ae67fd07c5cc8e 100644 (file)
@@ -69,7 +69,7 @@ void DumpUnfreed()
 #endif
 
 Signal2<void, int, const std::string&> logOutput;
-int logOutputConsole=0;
+int logOutputConsole=1;
 
 static pthread_mutex_t DebugLock =
        PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP;
@@ -126,15 +126,17 @@ void eWarning(const char* fmt, ...)
        if (logOutputConsole)
                fprintf(stderr, "%s\n", buf);
 }
+#endif // DEBUG
 
 void ePythonOutput(const char *string)
 {
+#ifdef DEBUG
        singleLock s(DebugLock);
        logOutput(lvlWarning, string);
        if (logOutputConsole)
                fwrite(string, 1, strlen(string), stderr);
+#endif
 }
-#endif // DEBUG
 
 void eWriteCrashdump()
 {