Skip to content

Commit

Permalink
Merge pull request #2 from vincenzopalazzo/macros/panic-logs
Browse files Browse the repository at this point in the history
core: remove the panic on drop
  • Loading branch information
vincenzopalazzo authored Oct 24, 2024
2 parents 4929909 + 65f0506 commit 86c8059
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opentelemetry-log"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["Vincent <vincenzopalazzo@member.fsf.org>"]
description = "A common library for OpenTelemetry logging in Rust."
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ impl Drop for Opentelemetry {
let Some(Err(err)) = self.logger.as_ref().map(|log| log.shutdown()) else {
return;
};
panic!("Failed to shutdown logger: {:?}", err);
eprintln!("Failed to shutdown logger: {:?}", err);
}
}

0 comments on commit 86c8059

Please sign in to comment.