Skip to content

Commit

Permalink
update: add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardo-gnosis committed Aug 30, 2024
1 parent b91bdb8 commit 90a3aac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/db/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,17 @@ func New(ctx context.Context, url string, options ...DBServiceOption) (*DBServic
}

func (s *DBService) Connect() error {
err := s.ConnectLowLevel()

err := s.ConnectHighLevel()
if err != nil {
return err
return fmt.Errorf("high level db driver error: %s", err)
}

err = s.ConnectHighLevel()
err = s.ConnectLowLevel()
if err != nil {
return err
return fmt.Errorf("low level db driver error: %s", err)
}

return nil

}
Expand Down

0 comments on commit 90a3aac

Please sign in to comment.