mirror of
https://github.com/Monibuca/engine.git
synced 2025-11-03 02:43:32 +08:00
fix: remove additional logFeild stream
This commit is contained in:
1
io.go
1
io.go
@@ -192,7 +192,6 @@ func (io *IO) receive(streamPath string, specific IIO) error {
|
||||
logFeilds = append(logFeilds, zap.String("ID", io.ID))
|
||||
}
|
||||
if io.Logger == nil {
|
||||
logFeilds = append(logFeilds, zap.String("stream", s.Path))
|
||||
io.Logger = s.With(logFeilds...)
|
||||
} else {
|
||||
io.Logger = io.Logger.With(logFeilds...)
|
||||
|
||||
@@ -354,7 +354,7 @@ var ErrNoPushConfig = errors.New("no push config")
|
||||
var Pushers sync.Map
|
||||
|
||||
func (opt *Plugin) Push(streamPath string, url string, pusher IPusher, save bool) (err error) {
|
||||
zp, zu := zap.String("path", streamPath), zap.String("url", url)
|
||||
zp, zu := zap.String("stream", streamPath), zap.String("url", url)
|
||||
opt.Info("push", zp, zu)
|
||||
defer func() {
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user