mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-09-07 03:09:54 -04:00
fix crash on specifying exactly one more -v flag than the max level
This commit is contained in:
parent
110aca2e8b
commit
be26ace545
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user