From e70457f137957c0ed6393434f34d39c750374de7 Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Thu, 16 Jan 2020 15:16:01 +0000 Subject: [PATCH] Add logger to ExcuseFinder --- britney2/excusefinder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/britney2/excusefinder.py b/britney2/excusefinder.py index 6860abd..9cb1b4b 100644 --- a/britney2/excusefinder.py +++ b/britney2/excusefinder.py @@ -2,6 +2,7 @@ from itertools import chain from urllib.parse import quote import apt_pkg +import logging from britney2 import DependencyType, PackageId from britney2.excuse import Excuse @@ -16,6 +17,8 @@ from britney2.utils import (invalidate_excuses, find_smooth_updateable_binaries, class ExcuseFinder(object): def __init__(self, options, suite_info, all_binaries, pkg_universe, policy_engine, mi_factory, hints): + logger_name = ".".join((self.__class__.__module__, self.__class__.__name__)) + self.logger = logging.getLogger(logger_name) self.options = options self.suite_info = suite_info self.all_binaries = all_binaries