From ee1bea3f7718be8dca404702d021cbc7de8ad18a Mon Sep 17 00:00:00 2001 From: Saxon Date: Tue, 15 Oct 2019 10:52:48 +1030 Subject: [PATCH] revid: fixed crash: converting durations to int before giving to logger as args --- revid/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/revid/config.go b/revid/config.go index 31a3d07d..673b51ad 100644 --- a/revid/config.go +++ b/revid/config.go @@ -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 }