From 1095f32ae412a7c90f6ba31bba347eb706efd210 Mon Sep 17 00:00:00 2001 From: saxon Date: Fri, 14 Dec 2018 20:50:26 +1030 Subject: [PATCH] revid: added send retry flag --- revid/config.go | 1 + revid/revid.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/revid/config.go b/revid/config.go index 5b9b8ac3..06a4b8da 100644 --- a/revid/config.go +++ b/revid/config.go @@ -65,6 +65,7 @@ type Config struct { IntraRefreshPeriod string RtpAddress string Logger Logger + SendRetry bool } // Enums for config struct diff --git a/revid/revid.go b/revid/revid.go index f7dbc9ad..93bcdf38 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -379,6 +379,8 @@ loop: err = dest.send() if err == nil { r.config.Logger.Log(smartlogger.Debug, pkg+"sent clip to output "+strconv.Itoa(i)) + } else if r.config.SendRetry == false { + r.config.Logger.Log(smartlogger.Warning, pkg+"send to output "+strconv.Itoa(i)+"failed", "error", err.Error()) } else { r.config.Logger.Log(smartlogger.Error, pkg+"send to output "+strconv.Itoa(i)+ "failed, trying again", "error", err.Error())