From 0da4c3b618cfb28c3153912b86a76a60176ad980 Mon Sep 17 00:00:00 2001 From: Ella Pietraroia Date: Mon, 23 Dec 2019 15:37:20 +1030 Subject: [PATCH] device/webcam/webcam.go: fixed error output --- device/webcam/webcam.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/device/webcam/webcam.go b/device/webcam/webcam.go index 47c1d46c..fbb3a91b 100644 --- a/device/webcam/webcam.go +++ b/device/webcam/webcam.go @@ -165,7 +165,7 @@ func (w *Webcam) Start() error { for { select { case <-w.done: - w.cfg.Logger.Log(logger.Info, "raspivid.Stop() called, finished checking stderr") + w.cfg.Logger.Log(logger.Info, "webcam.Stop() called, finished checking stderr") return default: buf, err := ioutil.ReadAll(stderr) @@ -175,7 +175,7 @@ func (w *Webcam) Start() error { } if len(buf) != 0 { - w.cfg.Logger.Log(logger.Error, "error from raspivid stderr", "error", string(buf)) + w.cfg.Logger.Log(logger.Error, "error from webcam stderr", "error", string(buf)) return } }