Add warn log level

This commit is contained in:
steve-chavez
2020-10-06 14:21:46 -05:00
committed by Steve Chavez
parent f6b6abe734
commit d9a608d9b0
4 changed files with 15 additions and 12 deletions
+2 -1
View File
@@ -194,7 +194,7 @@ readPathShowHelp = customExecParser parserPrefs opts
|## content types to produce raw output
|# raw-media-types="image/png, image/jpg"
|
|## logging level. The admitted values are: info and crit
|## logging level, the admitted values are: crit, error, warn and info.
|# log-level = "info"
|]
@@ -270,6 +270,7 @@ readAppConfig cfgPath = do
Just "" -> pure LogInfo
Just "crit" -> pure LogCrit
Just "error" -> pure LogError
Just "warn" -> pure LogWarn
Just "info" -> pure LogInfo
Just _ -> fail "Invalid logging level. Check your configuration."