diff --git a/revid/revid.go b/revid/revid.go index f3030b3a..48e35a87 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -204,11 +204,11 @@ func (r *Revid) handleErrors() { r.config.Logger.Log(logger.Error, pkg+"async error", "error", err.Error()) err = r.Stop() if err != nil { - r.config.Logger.Log(logger.Fatal, pkg+"failed to stop", "error", err.Error()) + r.config.Logger.Log(logger.Error, pkg+"failed to stop in response to error", "error", err.Error()) } err = r.Start() if err != nil { - r.config.Logger.Log(logger.Fatal, pkg+"failed to restart", "error", err.Error()) + r.config.Logger.Log(logger.Error, pkg+"failed to restart in response to error", "error", err.Error()) } } } @@ -359,7 +359,7 @@ func (r *Revid) Start() error { // Stop halts any processing of video data from a camera or file func (r *Revid) Stop() error { if !r.IsRunning() { - return errors.New(pkg + "stop called but revid is already stopped") + return errors.New(pkg + "stop called but revid isn't running") } r.config.Logger.Log(logger.Info, pkg+"stopping revid")