5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-09-19 15:49: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:
Qais Patankar 2021-02-15 21:20:08 +00:00 committed by GitHub
parent ce5140febd
commit 10f044c3dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()),
}
}