Skip to content

Commit

Permalink
Add some more logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
lostlevels committed Dec 20, 2023
1 parent 3f1a910 commit 01b2b02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions auth/service/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ func (s *Service) initializeDeviceCheck() error {
}

func (s *Service) initializeAppValidate() error {
s.Logger().Debug("Initializing app validate")
cfg, err := appvalidate.NewValidatorConfig()
if err != nil {
return err
Expand All @@ -465,9 +466,13 @@ func (s *Service) initializeAppValidate() error {
}

func (s *Service) initializePartnerSecrets() error {
s.Logger().Debug("Initializing partner secrets")
var err error
s.partnerSecrets, err = appvalidate.NewPartnerSecrets()
// Allow system to not fail if there are no credentials loaded.
if err != nil {
s.Logger().Warnf("error initializing partner secrets: %v", err)
}
if err != nil && !stdErrors.Is(err, appvalidate.ErrInvalidPartnerCredentials) {
return err
}
Expand Down

0 comments on commit 01b2b02

Please sign in to comment.