diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index 5f103f8c..3fccba72 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -68,8 +68,8 @@ class Upgrade(Configs): inst_pkg: str = f'{name}-{inst_version}' logger = logging.getLogger(LoggingConfig.date) - logger.info('%s: %s: %s', self.__class__.__name__, - self.__class__.is_package_upgradeable.__name__, + logger.info(f'{self.__class__.__name__}: ' + f'{self.__class__.is_package_upgradeable.__name__}: ' f'{repo_tag=}, {repo_pkg=}, {inst_pkg=}, {parse(repo_pkg) > parse(inst_pkg)}, ' f'{parse(repo_pkg) == parse(inst_pkg) and parse(repo_build) > parse(inst_build)}') @@ -83,8 +83,8 @@ class Upgrade(Configs): except InvalidVersion: logger = logging.getLogger(LoggingConfig.date) - logger.exception('%s: %s: %s', self.__class__.__name__, - self.__class__.is_package_upgradeable.__name__, + logger.exception(f'{self.__class__.__name__}: ' + f'{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}')