Skip to content

Commit

Permalink
better logs for licences
Browse files Browse the repository at this point in the history
  • Loading branch information
alex75 committed Sep 20, 2024
1 parent f1d613d commit 3b3c741
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cads_catalogue/licence_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ def update_catalogue_licences(
)
except Exception: # noqa
logger.exception(
"db sync for licence '%s' failed, error follows" % licence_uid
"db sync for licence '%s' (revision %s) failed, error follows"
% (licence_uid, revision)
)
return involved_licences

Expand All @@ -297,7 +298,10 @@ def remove_orphan_licences(
continue
licence.resources = []
session.delete(licence)
logger.info("removed licence '%s'" % licence.licence_uid)
logger.info(
"removed licence '%s' (revision %s)"
% (licence.licence_uid, licence.revision)
)


def migrate_from_cds_licences(
Expand Down

0 comments on commit 3b3c741

Please sign in to comment.