aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-02 07:07:50 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-02 07:07:50 +0000
commite1751c80144745a8e6d92c52bd7f4398cb620c7e (patch)
tree91ed0d5180251ef6a17eac886261c7e7f6115fe1
parent23ef14d81cba3cf214f3f15c1e6a937dc9911036 (diff)
logwindow.c: reduced debug print.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2269 ee746299-78ed-0310-b773-934348b2243d
-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);