From 4f5a47b1e5b09ea54c86db511637817f5eb56a6b Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Fri, 5 Oct 2018 08:17:41 +0930 Subject: [PATCH] revid: fix logging for completed stream with error --- revid/revid.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/revid/revid.go b/revid/revid.go index bdd984a6..d78673d7 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -464,11 +464,8 @@ func (r *Revid) startRaspivid() error { r.config.Logger.Log(smartlogger.Info, pkg+"reading camera data") err = r.lexTo(r.encoder, stdout, delay) - if err != nil { - return err - } - r.config.Logger.Log(smartlogger.Info, pkg+"not trying to read from camera anymore") - return nil + r.config.Logger.Log(smartlogger.Info, pkg+"finished reading camera data") + return err } // setupInputForFile sets things up for getting input from a file