From 10865d029a04cd66250fe4fc29a473d6cd36d119 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 27 Apr 2023 14:47:10 +0300 Subject: [PATCH] Updated for logging --- slpkg/upgrade.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index dc3b2a64..9cdacbcd 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -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