Skip to content

Commit

Permalink
Increase debug priority of trunk connection state changes
Browse files Browse the repository at this point in the history
We should only see these printed once a steady state has been reached if something genuinely interesting happens, like a load spike or network disruption
  • Loading branch information
arr2036 committed Dec 9, 2019
1 parent ed1160f commit caa9956
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/server/trunk.c
Expand Up @@ -361,7 +361,7 @@ static fr_table_num_ordered_t const fr_trunk_connection_states[] = {
{ "INACTIVE", FR_TRUNK_CONN_INACTIVE },
{ "CLOSED", FR_TRUNK_CONN_CLOSED },
{ "DRAINING", FR_TRUNK_CONN_DRAINING },
{ "DRAINING-TO-FREE", FR_TRUNK_CONN_DRAINING_TO_FREE }
{ "DRAINING-TO-FREE", FR_TRUNK_CONN_DRAINING_TO_FREE }
};
static size_t fr_trunk_connection_states_len = NUM_ELEMENTS(fr_trunk_connection_states);

Expand All @@ -382,10 +382,10 @@ static size_t fr_trunk_connection_events_len = NUM_ELEMENTS(fr_trunk_connection_

#define CONN_STATE_TRANSITION(_new) \
do { \
DEBUG4("[%" PRIu64 "] Trunk connection changed state %s -> %s", \
fr_connection_get_id(tconn->conn), \
fr_table_str_by_value(fr_trunk_connection_states, tconn->state, "<INVALID>"), \
fr_table_str_by_value(fr_trunk_connection_states, _new, "<INVALID>")); \
INFO("[%" PRIu64 "] Trunk connection changed state %s -> %s", \
fr_connection_get_id(tconn->conn), \
fr_table_str_by_value(fr_trunk_connection_states, tconn->state, "<INVALID>"), \
fr_table_str_by_value(fr_trunk_connection_states, _new, "<INVALID>")); \
tconn->state = _new; \
trunk_requests_per_connnection(NULL, NULL, trunk, fr_time()); \
} while (0)
Expand Down

0 comments on commit caa9956

Please sign in to comment.