diff --git a/cmd/ssh-chat/cmd.go b/cmd/ssh-chat/cmd.go index 0aef593..5d727d3 100644 --- a/cmd/ssh-chat/cmd.go +++ b/cmd/ssh-chat/cmd.go @@ -85,7 +85,7 @@ func main() { // Figure out the log level numVerbose := len(options.Verbose) - if numVerbose > len(logLevels) { + if numVerbose >= len(logLevels) { numVerbose = len(logLevels) - 1 }