diff --git a/Cargo.toml b/Cargo.toml index 6236577..943d7c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "opentelemetry-log" -version = "0.1.0" +version = "0.1.1" edition = "2021" authors = ["Vincent "] description = "A common library for OpenTelemetry logging in Rust." diff --git a/src/lib.rs b/src/lib.rs index acf3076..33451a0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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); } }