revid: fixed crash: converting durations to int before giving to logger as args

This commit is contained in:
Saxon 2019-10-15 10:52:48 +10:30
parent 5642af9cc5
commit ee1bea3f77
1 changed files with 2 additions and 2 deletions

View File

@ -462,7 +462,7 @@ func (c *Config) Validate() error {
}
if c.RTMPRBWriteTimeout <= 0 {
c.Logger.Log(logger.Info, pkg+"RTMPRBWriteTimeout bad or unset, defaulting", "RTMPRBWriteTimeout", defaultRTMPRBWriteTimeout)
c.Logger.Log(logger.Info, pkg+"RTMPRBWriteTimeout bad or unset, defaulting", "RTMPRBWriteTimeout", int(defaultRTMPRBWriteTimeout))
c.RTMPRBWriteTimeout = defaultRTMPRBWriteTimeout
}
@ -477,7 +477,7 @@ func (c *Config) Validate() error {
}
if c.MTSRBWriteTimeout <= 0 {
c.Logger.Log(logger.Info, pkg+"MTSRBWriteTimeout bad or unset, defaulting", "MTSRBWriteTimeout", defaultMTSRBWriteTimeout)
c.Logger.Log(logger.Info, pkg+"MTSRBWriteTimeout bad or unset, defaulting", "MTSRBWriteTimeout", int(defaultMTSRBWriteTimeout))
c.MTSRBWriteTimeout = defaultMTSRBWriteTimeout
}