diff --git a/pungi/gather_dnf.py b/pungi/gather_dnf.py index 7e0c30fb..26755a9a 100644 --- a/pungi/gather_dnf.py +++ b/pungi/gather_dnf.py @@ -142,10 +142,16 @@ class Gather(GatherBase): super(Gather, self).__init__(dnf_obj) self.logger = logger if not self.logger: - # Default logger + # default logger self.logger = logging.getLogger("gather_dnf") self.logger.setLevel(logging.DEBUG) + # default logging handler + handler = logging.StreamHandler() + handler.setFormatter(logging.Formatter("%(asctime)s [%(levelname)-8s] %(message)s", datefmt="%Y-%m-%d %H:%M:%S")) + handler.setLevel(logging.DEBUG) + self.logger.addHandler(handler) + self.opts = gather_options self.logger.debug("Gather received gather_options=%s" % gather_options.__dict__) self._multilib = pungi.multilib_dnf.Multilib(self.dnf._sack, gather_options.multilib_methods, blacklist=self.opts.multilib_blacklist, whitelist=self.opts.multilib_whitelist)