diff --git a/main.go b/main.go index f24810a..f698daf 100644 --- a/main.go +++ b/main.go @@ -49,7 +49,7 @@ MARIADB_PASSWORD=db_password MARIADB_DATABASE_NAME=db_database_name`) config.LoadConfig() - rslogger.InitLogger(true, config.Cfg.ColorizedOutput, config.Cfg.LogManagerServerUrl) + rslogger.InitLogger(false, config.Cfg.ColorizedOutput, config.Cfg.LogManagerServerUrl) if os.Getenv("DOCKER") != "" { fmt.Println("Waiting for mariadb docker") diff --git a/modules/telegram/telegram.go b/modules/telegram/telegram.go index 4a5f397..5b20901 100644 --- a/modules/telegram/telegram.go +++ b/modules/telegram/telegram.go @@ -75,7 +75,8 @@ func IncomingMessagesHandler() { replyMessage = "Welcome!\n\n" + "Type /verify to start receiving notifications. The code can be found in the user profile on the dashboard.\n\n" + "Type /unsubscribe to stop receiving notifications.\n\n" + - "Type /filter to filter notifications. Filter can be: success, info, warning, error. For example: /filter info,warning,error will filter all notifications except success." + "Type /filter to filter notifications. Filter can be: success, info, warning, error. For example: /filter info,warning,error will filter all notifications except success.\n\n" + + "Type /filter to get your current filter." SendNotification(chatID, replyMessage) @@ -118,6 +119,7 @@ func IncomingMessagesHandler() { database.DB.Create(&structs.VerifiedUser{ UserId: tempVerify.UserId, ChatId: update.Message.From.ID, + Filter: utils.NotificationTypeError, CreatedAt: time.Now(), })