fix(xmpp): format debug logging statements for consistency

This commit is contained in:
2025-11-21 11:21:46 +03:00
parent 68857100ff
commit cd7cee84d3
2 changed files with 4 additions and 4 deletions

View File

@@ -1022,8 +1022,8 @@ _connection_handler(xmpp_conn_t* const xmpp_conn, const xmpp_conn_event_t status
// disconnected // disconnected
case XMPP_CONN_DISCONNECT: case XMPP_CONN_DISCONNECT:
log_debug("Connection handler: XMPP_CONN_DISCONNECT"); log_debug("Connection handler: XMPP_CONN_DISCONNECT");
log_debug("[CONNDBG] disconnect: previous_status=%d error=%d has_stream_error=%s", log_debug("[CONNDBG] disconnect: previous_status=%d error=%d has_stream_error=%s",
(int)conn.conn_status, error, (int)conn.conn_status, error,
(stream_error && stream_error->stanza) ? "yes" : "no"); (stream_error && stream_error->stanza) ? "yes" : "no");
// lost connection for unknown reason // lost connection for unknown reason

View File

@@ -265,7 +265,7 @@ session_process_events(void)
if ((reconnect_sec != 0) && reconnect_timer) { if ((reconnect_sec != 0) && reconnect_timer) {
int elapsed_sec = g_timer_elapsed(reconnect_timer, NULL); int elapsed_sec = g_timer_elapsed(reconnect_timer, NULL);
if (elapsed_sec > reconnect_sec) { 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); elapsed_sec, reconnect_sec);
session_reconnect_now(); session_reconnect_now();
} }
@@ -393,7 +393,7 @@ session_login_failed(void)
void void
session_lost_connection(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()); prefs_get_reconnect());
/* this callback also clears all cached data */ /* this callback also clears all cached data */
sv_ev_lost_connection(); sv_ev_lost_connection();