Skip to content

Commit

Permalink
chore(logs): add some debug logs for adding/removing visas from the d…
Browse files Browse the repository at this point in the history
…b session
  • Loading branch information
Avantol13-machine-user committed Jan 21, 2022
1 parent 570044a commit 5dc93d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fence/resources/ga4gh/passports.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,10 @@ def _sync_validated_visa_authorization(
# after syncing authorization, persist the visas that were parsed successfully.
for visa in ga4gh_visas:
if visa not in synced_visas:
logger.debug(f"deleting visa with id={visa.id} from db session")
db_session.delete(visa)
else:
logger.debug(f"adding visa with id={visa.id} to db session")
db_session.add(visa)


Expand Down

0 comments on commit 5dc93d9

Please sign in to comment.