chore(relay): log all failed requests on warn (#4700)

This was discussed with @AndrewDryga to allow us detecting potential
attacks. Some amount of authentication failures are expected during
normal operation because TURN has this system of nonces which can only
be used a certain number of times.

Resolves: #4550.
This commit is contained in:
Thomas Eizinger
2024-04-19 15:17:38 +10:00
committed by GitHub
parent 4ee37d6cce
commit d9dc94eca3

View File

@@ -315,12 +315,10 @@ where
error_response.add_attribute(Nonce::new(new_nonce.to_string()).unwrap());
error_response.add_attribute((*FIREZONE).clone());
tracing::debug!(target: "relay", "{} failed: {}", error_response.method(), error.reason_phrase());
} else {
tracing::warn!(target: "relay", "{} failed: {}", error_response.method(), error.reason_phrase());
}
tracing::warn!(target: "relay", "{} failed: {}", error_response.method(), error.reason_phrase());
self.send_message(error_response, sender);
}