Skip to content

Commit

Permalink
Log panics
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal committed Apr 9, 2024
1 parent c1f66d1 commit 42a444c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/internal/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ func runClient(
relayProbe *Probe,
wgProbe *Probe,
) error {
defer func() {
if r := recover(); r != nil {
log.Panic()
}
}()

log.Infof("starting NetBird client version %s on %s/%s", version.NetbirdVersion(), runtime.GOOS, runtime.GOARCH)

// Check if client was not shut down in a clean way and restore DNS config if required.
Expand Down

0 comments on commit 42a444c

Please sign in to comment.