Skip to content

Commit

Permalink
fix log level and prettify naming
Browse files Browse the repository at this point in the history
  • Loading branch information
almostinf committed Jul 2, 2024
1 parent b7b2640 commit e8a2066
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/cli/telegram_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func updateTelegramUsersRecordsOnRedisNode(connector *redis.DbConnector, client

chatID, err := strconv.ParseInt(oldValue, 10, 64)
if err != nil {
logger.Error().
logger.Warning().
String("old_value", oldValue).
Error(err).
Msg("failed to parse chatID as int")
Expand Down Expand Up @@ -132,7 +132,7 @@ func downgradeTelegramUsersRecordsOnRedisNode(connector *redis.DbConnector, clie

chat := &telegram.Chat{}
if err = json.Unmarshal([]byte(oldValue), chat); err != nil {
logger.Error().
logger.Warning().
String("old_value", oldValue).
Error(err).
Msg("failed to unmarshal old value chat json")
Expand Down
2 changes: 1 addition & 1 deletion interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ type Database interface {

// Bot data storing
GetChatByUsername(messenger, username string) (string, error)
SetUsernameChat(messenger, username, chat string) error
SetUsernameChat(messenger, username, chatRaw string) error
RemoveUser(messenger, username string) error

// Triggers without subscription manipulation
Expand Down

0 comments on commit e8a2066

Please sign in to comment.