-
Notifications
You must be signed in to change notification settings - Fork 71
Implement mitigation 4 of TM #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adds trace logging whenever requests, responses, mappings or commands are sent or received. Signed-off-by: Hugues de Valon <[email protected]>
response | ||
}; | ||
|
||
// Serialise the response into bytes | ||
// Write bytes to stream | ||
match response.write_to_stream(&mut stream) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for not asking this earlier, but why not just put a trace!("dispatch_request egress");
just before this match? Or did you not want to write it if the dispatcher
wasn't called?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes so that it is only written when the dispatcher
has been called.
if crate::utils::GlobalConfig::log_error_details() { | ||
if let Some(app_name_string) = app_name.clone() { | ||
info!( | ||
"New request received from application name \"{}\"", | ||
app_name_string | ||
) | ||
} else { | ||
info!("New request received without authentication") | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👌
@@ -209,6 +206,12 @@ impl OnDiskKeyInfoManager { | |||
))?, | |||
) { | |||
Ok(key_triple) => { | |||
if crate::utils::GlobalConfig::log_error_details() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should rename the flag to log_details
Adds trace logging whenever requests, responses, mappings or commands
are sent or received.
Signed-off-by: Hugues de Valon [email protected]