Skip to content

Commit

Permalink
fix: do not exit on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Michsior14 committed Nov 26, 2023
1 parent 982fb61 commit c351bb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
Expand Down

0 comments on commit c351bb4

Please sign in to comment.