Skip to content

Commit

Permalink
refactor: dial down some log levels on rcon dialling (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucktay authored Nov 13, 2020
1 parent a761861 commit 72dbfcb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions cmd/rcon.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ func dialAndAuth(logger *logging.Logger, cfg configRcon) *rcon.RCON {

var r *rcon.RCON

logger.Log(logging.Entry{
Payload: fmt.Sprintf("Dialling '%s' and authing...", rconAddress),
Severity: logging.Notice,
})
logger.Log(logging.Entry{Payload: fmt.Sprintf("Dialling '%s' and authing...", rconAddress)})

// Set placeholder errors before going into loop
errDial, errAuth := errPlaceholder, errPlaceholder
Expand Down Expand Up @@ -55,10 +52,7 @@ func dialAndAuth(logger *logging.Logger, cfg configRcon) *rcon.RCON {
}
}

logger.Log(logging.Entry{
Payload: "Online!",
Severity: logging.Notice,
})
logger.Log(logging.Entry{Payload: "Online!"})

return r
}

0 comments on commit 72dbfcb

Please sign in to comment.