support log level override
This commit is contained in:
parent
dfa4caec54
commit
8481efd03c
@ -1806,9 +1806,8 @@ class SigRepoSync:
|
||||
)
|
||||
|
||||
# This is temporary for now.
|
||||
if logger is None:
|
||||
self.log = logging.getLogger("sigreposync")
|
||||
self.log.setLevel(logging.INFO)
|
||||
self.log.setLevel(getattr(logging, logger.upper(), 'INFO'))
|
||||
handler = logging.StreamHandler(sys.stdout)
|
||||
handler.setLevel(logging.INFO)
|
||||
formatter = logging.Formatter(
|
||||
|
Loading…
Reference in New Issue
Block a user