diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-04-07 21:07:19 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-04-07 21:07:19 +0000 |
commit | 8cc3307e0d240454985154504dfe8852c3cbb66a (patch) | |
tree | 59d8d756aa41507388e7edbe545c234f3cdbd28e /src/or/connection.c | |
parent | dd98412ce122b84a01fb01e24068c9d7e95cb04f (diff) | |
download | tor-8cc3307e0d240454985154504dfe8852c3cbb66a.tar.gz tor-8cc3307e0d240454985154504dfe8852c3cbb66a.zip |
Improve conn_*_to_string; add circuit_state_to_string; make skewed-descriptor messages better.
svn:r4047
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 281eca9599..4d81ca91d1 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -44,6 +44,7 @@ conn_type_to_string(int type) case CONN_TYPE_CONTROL_LISTENER: return "Control listener"; case CONN_TYPE_CONTROL: return "Control"; default: + log_fn(LOG_WARN, "Bug: unknown connection type %d", type); tor_snprintf(buf, sizeof(buf), "unknown [%d]", type); return buf; } @@ -117,6 +118,7 @@ conn_state_to_string(int type, int state) { break; } + log_fn(LOG_WARN, "Bug: unknown connection state %d (type %d)", state, type); tor_snprintf(buf, sizeof(buf), "unknown state [%d] on unknown [%s] connection", state, conn_type_to_string(type)); |