Ensure logging enabled for CLI
Re-add configuration of the logging for CLI, which was accidentally removed in refactoring. Remove local instance of logger variable as also defined at the module level. Change-Id: Idea548d5a4ed52fd7f9ccb13f9b4e898cd9cc616
This commit is contained in:
parent
aaae83c623
commit
72acdc2149
@ -27,6 +27,7 @@ from jenkins_jobs.config import JJBConfig
|
||||
from jenkins_jobs import utils
|
||||
from jenkins_jobs import version
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
@ -63,7 +64,6 @@ class JenkinsJobs(object):
|
||||
if not self.options.command:
|
||||
self.parser.error("Must specify a 'command' to be performed")
|
||||
|
||||
logger = logging.getLogger()
|
||||
if (self.options.log_level is not None):
|
||||
self.options.log_level = getattr(logging,
|
||||
self.options.log_level.upper(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user