Skip to content

Commit

Permalink
chore: remove some logger
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 19, 2024
1 parent 2997789 commit c635c98
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/user/mysql_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ func (m mysqlRepo) GetFullUser(ctx context.Context, userID model.UserID) (FullUs
if errors.Is(err, gorm.ErrRecordNotFound) {
return FullUser{}, gerr.ErrUserNotFound
}

m.log.Error("unexpected error happened", zap.Error(err))
return FullUser{}, errgo.Wrap(err, "dal")
}

Expand Down Expand Up @@ -87,8 +85,6 @@ func (m mysqlRepo) GetByID(ctx context.Context, userID model.UserID) (User, erro
if errors.Is(err, gorm.ErrRecordNotFound) {
return User{}, gerr.ErrUserNotFound
}

m.log.Error("unexpected error happened", zap.Error(err))
return User{}, errgo.Wrap(err, "dal")
}

Expand All @@ -101,8 +97,6 @@ func (m mysqlRepo) GetByName(ctx context.Context, username string) (User, error)
if errors.Is(err, gorm.ErrRecordNotFound) {
return User{}, gerr.ErrUserNotFound
}

m.log.Error("unexpected error happened", zap.Error(err))
return User{}, errgo.Wrap(err, "dal")
}

Expand Down

0 comments on commit c635c98

Please sign in to comment.