From 0f047c38168949b246223dc1b1154a6969753d2e Mon Sep 17 00:00:00 2001 From: bodqhrohro Date: Tue, 5 Nov 2019 02:09:07 +0200 Subject: Set logging level for Logrus and TDlib from config --- telegabber.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'telegabber.go') diff --git a/telegabber.go b/telegabber.go index 6754038..8c098e1 100644 --- a/telegabber.go +++ b/telegabber.go @@ -19,6 +19,8 @@ func main() { log.Fatal(err) } + SetLogrusLevel(config.XMPP.Loglevel) + cm, err := xmpp.NewComponent(config.XMPP, config.Telegram) if err != nil { log.Fatal(err) -- cgit v1.2.3