diff --git a/go/vt/logutil/level.go b/go/vt/logutil/level.go index bf59a42dde6..86c61c868ea 100644 --- a/go/vt/logutil/level.go +++ b/go/vt/logutil/level.go @@ -23,11 +23,13 @@ import ( func init() { threshold := flag.Lookup("stderrthreshold") if threshold == nil { - panic("the logging module doesn't specify a stderrthreshold flag") + // the logging module doesn't specify a stderrthreshold flag + return } + const warningLevel = "1" if err := threshold.Value.Set(warningLevel); err != nil { - panic(err) + return } threshold.DefValue = warningLevel }