From e013d914b63068db53e5a90a537052b32448f5a6 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Fri, 25 Oct 2024 01:46:23 +0200 Subject: [PATCH] core: remove the panic on drop Signed-off-by: Vincenzo Palazzo --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }