mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
sendme: Improve logging messages
Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
535ba0d7c5
commit
77bd219808
@ -129,8 +129,8 @@ cell_version_is_valid(uint8_t cell_version)
|
|||||||
/* Can we handle this version? */
|
/* Can we handle this version? */
|
||||||
if (accept_version > SENDME_MAX_SUPPORTED_VERSION) {
|
if (accept_version > SENDME_MAX_SUPPORTED_VERSION) {
|
||||||
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
|
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
|
||||||
"Unable to handle SENDME version %u. We only support <= %d "
|
"Unable to accept SENDME version %u (from consensus). "
|
||||||
"(from consensus). Probably your tor is too old?",
|
"We only support <= %d. Probably your tor is too old?",
|
||||||
accept_version, cell_version);
|
accept_version, cell_version);
|
||||||
goto invalid;
|
goto invalid;
|
||||||
}
|
}
|
||||||
@ -138,8 +138,7 @@ cell_version_is_valid(uint8_t cell_version)
|
|||||||
/* We only accept a SENDME cell from what the consensus tells us. */
|
/* We only accept a SENDME cell from what the consensus tells us. */
|
||||||
if (cell_version < accept_version) {
|
if (cell_version < accept_version) {
|
||||||
log_info(LD_PROTOCOL, "Unacceptable SENDME version %d. Only "
|
log_info(LD_PROTOCOL, "Unacceptable SENDME version %d. Only "
|
||||||
"accepting %u (taken from the consensus). "
|
"accepting %u (from consensus). Closing circuit.",
|
||||||
"Closing circuit.",
|
|
||||||
cell_version, accept_version);
|
cell_version, accept_version);
|
||||||
goto invalid;
|
goto invalid;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user