Skip to content

Commit

Permalink
fix(logger): remove warn from subscriber (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantJoshi00 authored Jan 14, 2025
1 parent 3bd9d61 commit ceff279
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/logger/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ where
if is_extra(key) && !explicit_entries_set.contains(key) {
map_serializer.serialize_entry(key, value)?;
} else {
tracing::warn!(
eprintln!(
"Attempting to log a reserved entry. It won't be added to the logs. key: {key:?}, value: {value:?}"
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/logger/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl<'a> Storage<'a> {

pub fn record_value(&mut self, key: &'a str, value: serde_json::Value) {
if super::formatter::IMPLICIT_KEYS.contains(key) {
tracing::warn!("{key} is a reserved entry. Skipping it. value: {value}");
eprintln!("{key} is a reserved entry. Skipping it. value: {value}");
} else {
self.values.insert(key, value);
}
Expand Down

0 comments on commit ceff279

Please sign in to comment.