Updated for logging

This commit is contained in:
Dimitris Zlatanidis 2023-04-27 13:20:24 +03:00
parent ef2d07b31e
commit ca5095bc1b
2 changed files with 5 additions and 1 deletions

View file

@ -55,6 +55,10 @@ class CheckUpdates(Configs):
else:
self.sbo_repository()
logger = logging.getLogger(__name__)
logger.info('%s: %s: %s:', self.__class__.__name__,
self.__class__.check.__name__, self.compare)
return self.compare
def binary_repository(self, repo) -> None:

View file

@ -11,4 +11,4 @@ class LoggingConfig:
encoding: str = 'utf-8'
root_slpkg: Path = Path(Path.home(), '.slpkg')
log_path: Path = Path(root_slpkg, 'logs')
log_file: Path = Path(log_path, 'errors_slpkg.log')
log_file: Path = Path(log_path, 'slpkg.log')