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
|
||||
RtpAddress string
|
||||
Logger Logger
|
||||
SendRetry bool
|
||||
}
|
||||
|
||||
// Enums for config struct
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue