Skip to content

Commit

Permalink
Added missing metadata calls to log functions
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsanchezq committed Aug 3, 2020
1 parent 3f90b67 commit 0c40c5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vit-servicing-station-lib/src/logging/mod.rs
Expand Up @@ -9,6 +9,7 @@ pub fn log_request_elapsed_time(elapsed_time: Duration) {
.with_level(log::Level::Info)
.with_tags(vec!["request", "elapsed"])
.with_message(format!("Request elapsed time: {}ns", elapsed))
.with_metadata(metadata)
.with_id(LogMessageId::Other("request_elapsed_time".into()))
.build()
.log();
Expand All @@ -21,6 +22,7 @@ pub fn log_rejected_api_key(api_key: String) {
.with_level(log::Level::Info)
.with_tags(vec!["api_key", "reject"])
.with_message(format!("Rejected API-Token: {}", api_key))
.with_metadata(metadata)
.with_id(LogMessageId::Other("RejectedAPIToken".into()))
.build()
.log();
Expand Down

0 comments on commit 0c40c5e

Please sign in to comment.