accept lower case log levels for the QUIC_GO_LOG_LEVEL flag

This commit is contained in:
Marten Seemann 2017-09-27 13:54:45 +07:00
parent 79c176692e
commit 9633ffa06f
2 changed files with 11 additions and 4 deletions

View file

@ -108,6 +108,12 @@ var _ = Describe("Log", func() {
Expect(logLevel).To(Equal(LogLevelDebug))
})
It("reads debug", func() {
os.Setenv(logEnv, "debug")
readLoggingEnv()
Expect(logLevel).To(Equal(LogLevelDebug))
})
It("reads INFO", func() {
os.Setenv(logEnv, "INFO")
readLoggingEnv()