mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-24 15:31:36 +00:00
Use valid transmitter Log default (discord) (#1402)
* Use valid transmitter Log default (discord) Using a logger created by `log.NewEntry(nil)` would crash. (matterbridge does not encounter this issue as it updates the Log field manually.)
This commit is contained in:
parent
ce5140febd
commit
10f044c3dd
@ -58,7 +58,7 @@ func New(session *discordgo.Session, guild string, title string, autoCreate bool
|
|||||||
|
|
||||||
channelWebhooks: make(map[string]*discordgo.Webhook),
|
channelWebhooks: make(map[string]*discordgo.Webhook),
|
||||||
|
|
||||||
Log: log.NewEntry(nil),
|
Log: log.NewEntry(log.StandardLogger()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user