mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-09-09 12:21:38 -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
|
// Figure out the log level
|
||||||
numVerbose := len(options.Verbose)
|
numVerbose := len(options.Verbose)
|
||||||
if numVerbose > len(logLevels) {
|
if numVerbose >= len(logLevels) {
|
||||||
numVerbose = len(logLevels) - 1
|
numVerbose = len(logLevels) - 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user