diff --git a/internal/conf/loglevel.go b/internal/conf/loglevel.go index d942ccba..01494174 100644 --- a/internal/conf/loglevel.go +++ b/internal/conf/loglevel.go @@ -15,6 +15,9 @@ func (d LogLevel) MarshalJSON() ([]byte, error) { var out string switch d { + case LogLevel(logger.Error): + out = "error" + case LogLevel(logger.Warn): out = "warn" @@ -36,6 +39,9 @@ func (d *LogLevel) UnmarshalJSON(b []byte) error { } switch in { + case "error": + *d = LogLevel(logger.Error) + case "warn": *d = LogLevel(logger.Warn) diff --git a/rtsp-simple-server.yml b/rtsp-simple-server.yml index f4c283d1..0cc0eb32 100644 --- a/rtsp-simple-server.yml +++ b/rtsp-simple-server.yml @@ -2,7 +2,7 @@ ############################################### # General parameters -# sets the verbosity of the program; available values are "warn", "info", "debug". +# sets the verbosity of the program; available values are "error", "warn", "info", "debug". logLevel: info # destinations of log messages; available values are "stdout", "file" and "syslog". logDestinations: [stdout]