From c351bb4fc61195917cc381f3c4a06ba5dd8db14b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Mrozek?= Date: Sun, 26 Nov 2023 23:47:55 +0100 Subject: [PATCH] fix: do not exit on errors --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 0a1cd03..406c20e 100644 --- a/main.go +++ b/main.go @@ -63,7 +63,7 @@ func main() { Get(gluetunPortApi) if err != nil || resp.IsError() { - log.Fatalf("failed to fetch port mapping from gluetun: %v, %d", err, resp.StatusCode()) + log.Printf("failed to fetch port mapping from gluetun: %v, %d", err, resp.StatusCode()) } if portMapping.Port == 0 { @@ -77,7 +77,7 @@ func main() { PeerPort: &transmissionPeerPort, }) if err != nil { - log.Fatalf("failed to set transmission peer port: %v", err) + log.Printf("failed to set transmission peer port: %v", err) } else { previousExternalPort = portMapping.Port log.Printf("updated transmission peer port to: %d", transmissionPeerPort)