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.)
pull/1406/head
Qais Patankar 3 years ago committed by GitHub
parent ce5140febd
commit 10f044c3dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save