diff options
author | Qais Patankar <qaisjp@gmail.com> | 2021-02-15 21:20:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-15 22:20:08 +0100 |
commit | 10f044c3dd971868523459b708a5bcbf81611df7 (patch) | |
tree | 1fb6e816ab54de004f951a567d31201f8cc40f6f | |
parent | ce5140febd21076d4ea362450f719580d47e59ae (diff) | |
download | matterbridge-msglm-10f044c3dd971868523459b708a5bcbf81611df7.tar.gz matterbridge-msglm-10f044c3dd971868523459b708a5bcbf81611df7.tar.bz2 matterbridge-msglm-10f044c3dd971868523459b708a5bcbf81611df7.zip |
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.)
-rw-r--r-- | bridge/discord/transmitter/transmitter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/discord/transmitter/transmitter.go b/bridge/discord/transmitter/transmitter.go index 1ce49e96..f327dfb7 100644 --- a/bridge/discord/transmitter/transmitter.go +++ b/bridge/discord/transmitter/transmitter.go @@ -58,7 +58,7 @@ func New(session *discordgo.Session, guild string, title string, autoCreate bool channelWebhooks: make(map[string]*discordgo.Webhook), - Log: log.NewEntry(nil), + Log: log.NewEntry(log.StandardLogger()), } } |