Skip to content

Commit

Permalink
remove unnecessary log lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dpakach committed Jan 23, 2021
1 parent fe44028 commit c720ec9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions users/api/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,7 @@ func (s *Server) GetProfile(ctx context.Context, in *userspb.EmptyData) (*usersp
return nil, status.Errorf(codes.Unauthenticated, "Invalid userid")
}

s.Log.Info(user.Username)
s.Log.Info(string(user.Id))
dbUser := data.UserStore.GetByID(user.Id)
s.Log.Info(dbUser.Username)
s.Log.Info(string(dbUser.ID))
if dbUser == nil {
s.Log.Errorf("Failed to Fetch the user: User doesn't exists")
return nil, status.Errorf(codes.NotFound, "User not found")
Expand Down

0 comments on commit c720ec9

Please sign in to comment.