thread);
if (!conn) {
talloc_free(conn);
- PERROR("Failed allocating state handler for new connection");
+ PERROR("%s - Failed allocating state handler for new connection", thread->inst->parent->name);
return NULL;
}
fr_connection_t *conn = tconn->conn;
udp_handle_t *h = talloc_get_type_abort(conn->h, udp_handle_t);
- ERROR("%s - Connection %s failed - %s", h->inst->parent->name, h->name, fr_syserror(fd_errno));
+ ERROR("%s - Connection %s failed - %s", h->module_name, h->name, fr_syserror(fd_errno));
fr_connection_signal_reconnect(conn, FR_CONNECTION_FAILED);
}
fr_trunk_connection_t *tconn = talloc_get_type_abort(uctx, fr_trunk_connection_t);
udp_handle_t *h = talloc_get_type_abort(tconn->conn->h, udp_handle_t);
- DEBUG("Shutting down and reviving connection %s", h->name);
+ INFO("%s - Shutting down and reviving connection %s", h->module_name, h->name);
fr_trunk_connection_signal_reconnect(tconn, FR_CONNECTION_FAILED);
}
uint32_t msec = fr_time_delta_to_msec(h->inst->parent->revive_interval);
fr_time_t when;
- DEBUG("Connection failed. Reviving it in %u.%03us",
- msec / 1000, msec % 1000);
+ WARN("%s - Connection failed. Reviving it in %u.%03us", h->module_name, msec / 1000, msec % 1000);
fr_trunk_connection_signal_inactive(tconn);
when = now + h->inst->parent->revive_interval;
if (state == FR_RETRY_MRD) {
RDEBUG("Reached maximum_retransmit_duration, failing request");
-
} else if (state == FR_RETRY_MRC) {
RDEBUG("Reached maximum_retransmit_count, failing request");
}
if (!u->status_check) return;
- DEBUG("No response to status check, marking connection as dead - %s", h->name);
+ WARN("%s - No response to status check, marking connection as dead - %s", h->module_name, h->name);
h->status_checking = false;