From 93ad7bc01fa81259d18793a2124711b907f581ee Mon Sep 17 00:00:00 2001 From: MalinAhlberg Date: Mon, 9 Sep 2024 11:55:07 +0200 Subject: [PATCH] [s3inbox] log fatal errors to make sure all reasons for panic are logged --- sda/cmd/s3inbox/s3inbox.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sda/cmd/s3inbox/s3inbox.go b/sda/cmd/s3inbox/s3inbox.go index 074027464..ade30d907 100644 --- a/sda/cmd/s3inbox/s3inbox.go +++ b/sda/cmd/s3inbox/s3inbox.go @@ -29,6 +29,7 @@ func main() { // Create a function to handle panic and exit gracefully defer func() { if err := recover(); err != nil { + log.Errorf("Could not recover from %v", err) log.Fatal("Could not recover, exiting") } }()