Updated for logging

This commit is contained in:
Dimitris Zlatanidis 2023-04-27 14:47:10 +03:00
parent 1034f162c2
commit 10865d029a

View file

@ -82,9 +82,10 @@ class Upgrade(Configs):
return True
except InvalidVersion:
logger = logging.getLogger(__name__)
logger.exception('%s: %s', self.__class__.__name__,
self.__class__.is_package_upgradeable.__name__)
logger.exception('%s: %s: %s', self.__class__.__name__,
self.__class__.is_package_upgradeable.__name__,
f'{repo_tag=}, {repo_pkg=}, {inst_pkg=}, {repo_pkg > inst_pkg=}, '
f'{repo_pkg == inst_pkg and repo_build > inst_build=}')
if repo_pkg > inst_pkg:
return True