aboutsummaryrefslogtreecommitdiff
path: root/telegram/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'telegram/client.go')
-rw-r--r--telegram/client.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/telegram/client.go b/telegram/client.go
index 6f6d719..49fc1ef 100644
--- a/telegram/client.go
+++ b/telegram/client.go
@@ -16,25 +16,6 @@ import (
"gosrc.io/xmpp"
)
-var logConstants = map[string]int32{
- ":fatal": 0,
- ":error": 1,
- ":warn": 2,
- ":info": 3,
- ":debug": 4,
- ":verbose": 5,
- ":all": 1023,
-}
-
-func stringToLogConstant(c string) int32 {
- level, ok := logConstants[c]
- if !ok {
- level = 0
- }
-
- return level
-}
-
// DelayedStatus describes an online status expiring on timeout
type DelayedStatus struct {
TimestampOnline int64
@@ -83,10 +64,6 @@ type clientLocks struct {
func NewClient(conf config.TelegramConfig, jid string, component *xmpp.Component, session *persistence.Session) (*Client, error) {
var options []client.Option
- options = append(options, client.WithLogVerbosity(&client.SetLogVerbosityLevelRequest{
- NewVerbosityLevel: stringToLogConstant(conf.Loglevel),
- }))
-
if conf.Tdlib.Client.CatchTimeout != 0 {
options = append(options, client.WithCatchTimeout(
time.Duration(conf.Tdlib.Client.CatchTimeout)*time.Second,