aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/logwindow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/logwindow.c b/src/logwindow.c
index 47cc8a8b..b8df6d93 100644
--- a/src/logwindow.c
+++ b/src/logwindow.c
@@ -261,7 +261,7 @@ void log_window_append(const gchar *str, LogType type)
{
#if USE_THREADS
if (g_thread_self() != main_thread) {
- fprintf(stderr, "log_window_append called from non-main thread (%p)\n", g_thread_self());
+ //g_fprintf(stderr, "log_window_append called from non-main thread (%p)\n", g_thread_self());
log_window_append_queue(str, type);
return;
}
@@ -286,7 +286,7 @@ void log_window_append_queue(const gchar *str, LogType type)
logdata->str = g_strdup(str);
logdata->type = type;
- g_print("append_queue: (%d) %s", type, str);
+ //g_print("append_queue: (%d) %s", type, str);
g_async_queue_push(logwindow->aqueue, logdata);
#endif
}
@@ -297,12 +297,12 @@ void log_window_flush(void)
LogData *logdata;
if (g_thread_self() != main_thread) {
- fprintf(stderr, "log_window_flush called from non-main thread (%p)\n", g_thread_self());
+ g_fprintf(stderr, "log_window_flush called from non-main thread (%p)\n", g_thread_self());
return;
}
while ((logdata = g_async_queue_try_pop(logwindow->aqueue))) {
- g_print("flush_queue: (%d) %s", logdata->type, logdata->str);
+ //g_print("flush_queue: (%d) %s", logdata->type, logdata->str);
log_window_append_real(logdata->str, logdata->type);
g_free(logdata->str);
g_free(logdata);