From b9bccaabdde89243b261766f598afe27195f6813 Mon Sep 17 00:00:00 2001 From: Saxon Date: Thu, 28 Feb 2019 16:53:06 +1030 Subject: [PATCH] cmd/revid-cli: fixed default value for log verbosity flag --- cmd/revid-cli/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index 60dd4246..064be699 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -120,7 +120,7 @@ func handleFlags() revid.Config { rtmpMethodPtr = flag.String("RtmpMethod", "", "The method used to send over rtmp: Ffmpeg, Librtmp") packetizationPtr = flag.String("Packetization", "", "The method of data packetisation: Flv, Mpegts, None") quantizePtr = flag.Bool("Quantize", false, "Quantize input (non-variable bitrate)") - verbosityPtr = flag.String("Verbosity", "", "Verbosity: Info, Warning, Error, Fatal") + verbosityPtr = flag.String("Verbosity", "Info", "Verbosity: Info, Warning, Error, Fatal") framesPerClipPtr = flag.Uint("FramesPerClip", 0, "Number of frames per clip sent") rtmpUrlPtr = flag.String("RtmpUrl", "", "Url of rtmp endpoint") bitratePtr = flag.Uint("Bitrate", 0, "Bitrate of recorded video") @@ -157,7 +157,7 @@ func handleFlags() revid.Config { case "Fatal": cfg.LogLevel = logger.Fatal default: - log.Log(logger.Error, pkg+"bad verbosity argument") + cfg.LogLevel = defaultLogVerbosity } log = logger.New(cfg.LogLevel, &smartlogger.New(*logPathPtr).LogRoller)