Skip to content

Commit 0ecc7f2

Browse files
committed
adjust log levels
1 parent 56077b6 commit 0ecc7f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

profiling/src/profiling/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ impl TimeCollector {
357357
// incorrect because it will be over-counted.
358358
Ok(_) => profile.add_endpoint_count(endpoint, 1),
359359
Err(err) => {
360-
warn!("failed to add endpoint for span id "{local_root_span_id}": {err}")
360+
debug!("failed to add endpoint for span id \"{local_root_span_id}\": {err}")
361361
}
362362
}
363363
}
@@ -418,7 +418,9 @@ impl TimeCollector {
418418
match profile.add_sample(sample, timestamp) {
419419
Ok(_id) => {}
420420
Err(err) => {
421-
warn!("Failed to add sample to the profile: {err}")
421+
// If the string table becomes full, this could flood customer
422+
// logs, which is why I've chosen this level.
423+
debug!("Failed to add sample to the profile: {err}")
422424
}
423425
}
424426
}

0 commit comments

Comments
 (0)