Skip to content

Commit

Permalink
add debug logging to jk diff
Browse files Browse the repository at this point in the history
  • Loading branch information
flupke committed Jan 26, 2018
1 parent 31cdef1 commit 858ae1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jenskipper/cli/diff.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import difflib
import sys
import logging

try:
from lxml import etree # NOQA
Expand All @@ -17,6 +18,9 @@
from .. import exceptions


logger = logging.getLogger(__name__)


@click.command()
@click.option('-r/-f', '--reverse/--no-reverse', help='Show reverse diffs '
'(default order is remote -> local).', default=False)
Expand Down Expand Up @@ -92,6 +96,7 @@ def get_job_diff(base_dir, jenkins_url, job_name, context_overrides=None,
'''
Get the diff lines printed by :func:`print_job_diff`.
'''
logger.debug('diffing %s', job_name)
if context_overrides is None:
context_overrides = {}
local_xml, _ = repository.get_job_conf(base_dir, job_name,
Expand Down

0 comments on commit 858ae1f

Please sign in to comment.