Skip to content

Commit

Permalink
feat(daemon): log handshake error paths as information messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pjvds committed Jul 13, 2021
1 parent 0d9f72d commit 5da1e5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/commands/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,16 @@ var DaemonCommand = &cli.Command{
if len(tunlToken) > 0 {
token, err := verifyToken(signKey, tunlToken)
if err != nil {
logger.Info("invalid tunl token", zap.String("token", tunlToken), zap.Error(err))

http.Error(response, err.Error(), http.StatusInternalServerError)
return
}

address, err = addresses.ClaimAddress(tunlType, token.Subject)
if err != nil {
logger.Info("address claim error", zap.String("address", token.Subject))

http.Error(response, err.Error(), http.StatusInternalServerError)
return
}
Expand Down

0 comments on commit 5da1e5c

Please sign in to comment.