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 --- telegram/client.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'telegram') diff --git a/telegram/client.go b/telegram/client.go index b0cee44..3d361b6 100644 --- a/telegram/client.go +++ b/telegram/client.go @@ -12,13 +12,13 @@ import ( ) var logConstants = map[string]int32{ - "fatal": 0, - "error": 1, - "warn": 2, - "info": 3, - "debug": 4, - "verbose": 5, - "all": 1023, + ":fatal": 0, + ":error": 1, + ":warn": 2, + ":info": 3, + ":debug": 4, + ":verbose": 5, + ":all": 1023, } func stringToLogConstant(c string) int32 { -- cgit v1.2.3