Skip to content

Commit

Permalink
fix: remove log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
neinkeinkaffee committed Sep 5, 2023
1 parent b268d16 commit 955a562
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions manager/store/firestore/ocpi.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,15 @@ func (s *Store) SetRegistrationDetails(ctx context.Context, token string, regist
}

func (s *Store) GetRegistrationDetails(ctx context.Context, token string) (*store.OcpiRegistration, error) {
slog.Info("checking registration", "token", token)
regRef := s.client.Doc(fmt.Sprintf("OcpiRegistration/%s", token))
snap, err := regRef.Get(ctx)
if err != nil {
if status.Code(err) == codes.NotFound {
return nil, nil
}
return nil, fmt.Errorf("lookup registration %s: %w", token, err)
}
var registration store.OcpiRegistration
err = snap.DataTo(&registration)
slog.Info("found registration", "status", registration.Status)
if err != nil {
return nil, fmt.Errorf("map registration %s: %w", token, err)
}
Expand Down

0 comments on commit 955a562

Please sign in to comment.