Merge "Ensure logging enabled for CLI"
This commit is contained in:
commit
089d9c7cc0
@ -27,6 +27,7 @@ from jenkins_jobs.config import JJBConfig
|
|||||||
from jenkins_jobs import utils
|
from jenkins_jobs import utils
|
||||||
from jenkins_jobs import version
|
from jenkins_jobs import version
|
||||||
|
|
||||||
|
logging.basicConfig(level=logging.INFO)
|
||||||
logger = logging.getLogger()
|
logger = logging.getLogger()
|
||||||
|
|
||||||
|
|
||||||
@ -63,7 +64,6 @@ class JenkinsJobs(object):
|
|||||||
if not self.options.command:
|
if not self.options.command:
|
||||||
self.parser.error("Must specify a 'command' to be performed")
|
self.parser.error("Must specify a 'command' to be performed")
|
||||||
|
|
||||||
logger = logging.getLogger()
|
|
||||||
if (self.options.log_level is not None):
|
if (self.options.log_level is not None):
|
||||||
self.options.log_level = getattr(logging,
|
self.options.log_level = getattr(logging,
|
||||||
self.options.log_level.upper(),
|
self.options.log_level.upper(),
|
||||||
|
Loading…
Reference in New Issue
Block a user