mirror of https://bitbucket.org/ausocean/av.git
revid: added send retry flag
This commit is contained in:
parent
ab643f2b97
commit
1095f32ae4
|
@ -65,6 +65,7 @@ type Config struct {
|
||||||
IntraRefreshPeriod string
|
IntraRefreshPeriod string
|
||||||
RtpAddress string
|
RtpAddress string
|
||||||
Logger Logger
|
Logger Logger
|
||||||
|
SendRetry bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enums for config struct
|
// Enums for config struct
|
||||||
|
|
|
@ -379,6 +379,8 @@ loop:
|
||||||
err = dest.send()
|
err = dest.send()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
r.config.Logger.Log(smartlogger.Debug, pkg+"sent clip to output "+strconv.Itoa(i))
|
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 {
|
} else {
|
||||||
r.config.Logger.Log(smartlogger.Error, pkg+"send to output "+strconv.Itoa(i)+
|
r.config.Logger.Log(smartlogger.Error, pkg+"send to output "+strconv.Itoa(i)+
|
||||||
"failed, trying again", "error", err.Error())
|
"failed, trying again", "error", err.Error())
|
||||||
|
|
Loading…
Reference in New Issue