revid: added pkg to logging messages in senders.go

This commit is contained in:
saxon 2018-09-20 11:15:27 +09:30
parent 35f12e9460
commit 0efb2abd6c
1 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@ func newRtmpSender(url string, timeout uint, retries int, log func(lvl int8, msg
log(smartlogger.Error, err.Error())
sess.Close()
if n < retries-1 {
log(smartlogger.Info, "retry rtmp connection")
log(smartlogger.Info, pkg+"retry rtmp connection")
}
}
if err != nil {
@ -280,7 +280,7 @@ func (s *rtmpSender) restart() error {
s.log(smartlogger.Error, err.Error())
s.sess.Close()
if n < s.retries-1 {
s.log(smartlogger.Info, "retry rtmp connection")
s.log(smartlogger.Info, pkg+"retry rtmp connection")
}
}
return err