Skip to content

Commit 95a5739

Browse files
zeripathtechknowlogick
authored andcommitted
Log: Ensure FLAGS=none is -1 (#9287)
1 parent 15254f5 commit 95a5739

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/log/flags.go

+3
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,8 @@ func FlagsFromString(from string) int {
6060
flags |= f
6161
}
6262
}
63+
if flags == 0 {
64+
return -1
65+
}
6366
return flags
6467
}

0 commit comments

Comments
 (0)