Skip to content

Commit

Permalink
adjust log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
morrisonlevi committed Feb 8, 2024
1 parent 56077b6 commit 0ecc7f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions profiling/src/profiling/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ impl TimeCollector {
// incorrect because it will be over-counted.
Ok(_) => profile.add_endpoint_count(endpoint, 1),
Err(err) => {
warn!("failed to add endpoint for span id "{local_root_span_id}": {err}")
debug!("failed to add endpoint for span id \"{local_root_span_id}\": {err}")
}
}
}
Expand Down Expand Up @@ -418,7 +418,9 @@ impl TimeCollector {
match profile.add_sample(sample, timestamp) {
Ok(_id) => {}
Err(err) => {
warn!("Failed to add sample to the profile: {err}")
// If the string table becomes full, this could flood customer
// logs, which is why I've chosen this level.
debug!("Failed to add sample to the profile: {err}")
}
}
}
Expand Down

0 comments on commit 0ecc7f2

Please sign in to comment.