diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index 728eb191..0f71ca2f 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -1022,8 +1022,8 @@ _connection_handler(xmpp_conn_t* const xmpp_conn, const xmpp_conn_event_t status // disconnected case XMPP_CONN_DISCONNECT: log_debug("Connection handler: XMPP_CONN_DISCONNECT"); - log_debug("[CONNDBG] disconnect: previous_status=%d error=%d has_stream_error=%s", - (int)conn.conn_status, error, + log_debug("[CONNDBG] disconnect: previous_status=%d error=%d has_stream_error=%s", + (int)conn.conn_status, error, (stream_error && stream_error->stanza) ? "yes" : "no"); // lost connection for unknown reason diff --git a/src/xmpp/session.c b/src/xmpp/session.c index 2779c048..4d0a64b9 100644 --- a/src/xmpp/session.c +++ b/src/xmpp/session.c @@ -265,7 +265,7 @@ session_process_events(void) if ((reconnect_sec != 0) && reconnect_timer) { int elapsed_sec = g_timer_elapsed(reconnect_timer, NULL); if (elapsed_sec > reconnect_sec) { - log_debug("[CONNDBG] session_process_events: auto-reconnect triggered after %d seconds (threshold=%d)", + log_debug("[CONNDBG] session_process_events: auto-reconnect triggered after %d seconds (threshold=%d)", elapsed_sec, reconnect_sec); session_reconnect_now(); } @@ -393,7 +393,7 @@ session_login_failed(void) void session_lost_connection(void) { - log_debug("[CONNDBG] session_lost_connection: connection lost, reconnect_interval=%d", + log_debug("[CONNDBG] session_lost_connection: connection lost, reconnect_interval=%d", prefs_get_reconnect()); /* this callback also clears all cached data */ sv_ev_lost_connection();