[evolution-data-server] [IMAPx] imapx_server_inactivity_thread: Turn runtime warnings into debug messages
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] [IMAPx] imapx_server_inactivity_thread: Turn runtime warnings into debug messages
- Date: Fri, 7 Aug 2015 11:44:11 +0000 (UTC)
commit 3cd6ddc4e0b8f12f878e4d51f29cd180106f3228
Author: Milan Crha <mcrha redhat com>
Date: Fri Aug 7 13:43:44 2015 +0200
[IMAPx] imapx_server_inactivity_thread: Turn runtime warnings into debug messages
camel/providers/imapx/camel-imapx-server.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 2aefa8a..7e46f7c 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -652,13 +652,14 @@ imapx_server_inactivity_thread (gpointer user_data)
if (imapx_in_idle (is)) {
/* Stop and restart the IDLE command. */
if (!camel_imapx_server_schedule_idle_sync (is, NULL, is->priv->cancellable, &local_error) &&
- !g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
- g_warning ("%s: Failed to restart IDLE: %s", G_STRFUNC, local_error ?
local_error->message : "Unknown error");
- }
+ !g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ camel_imapx_debug (io, camel_imapx_server_get_tagprefix (is),
+ "%s: Failed to restart IDLE: %s\n", G_STRFUNC, local_error ?
local_error->message : "Unknown error");
} else {
if (!camel_imapx_server_noop_sync (is, NULL, is->priv->cancellable, &local_error) &&
!g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
- g_warning ("%s: Failed to issue NOOP: %s", G_STRFUNC, local_error ?
local_error->message : "Unknown error");
+ camel_imapx_debug (io, camel_imapx_server_get_tagprefix (is),
+ "%s: Failed to issue NOOP: %s\n", G_STRFUNC, local_error ?
local_error->message : "Unknown error");
}
g_clear_error (&local_error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]