Skip to content

Commit

Permalink
Replace hard-coded log.Fatalfs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevapple committed Aug 24, 2024
1 parent f38d897 commit d76ccda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sshmux.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ func makeServer(config Config) (*Server, error) {
if loggerURL.Scheme == "udp" {
conn, err := net.Dial("udp", loggerURL.Host)
if err != nil {
log.Fatalf("Logger Dial failed: %s\n", err)
return nil, fmt.Errorf("logger dial failed: %s", err)
}
logWriter = conn
} else {
log.Fatalf("unsupported logger endpoint: %s\n", config.Logger.Endpoint)
return nil, fmt.Errorf("unsupported logger endpoint: %s", config.Logger.Endpoint)
}
} else {
logWriter = io.Discard
Expand Down

0 comments on commit d76ccda

Please sign in to comment.