From 10f044c3dd971868523459b708a5bcbf81611df7 Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Mon, 15 Feb 2021 21:20:08 +0000 Subject: 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.) --- bridge/discord/transmitter/transmitter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/discord/transmitter') 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()), } } -- cgit v1.2.3