Skip to content

Commit

Permalink
ENH: add --debug also to batched annexes if loglevel <= 8
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Sep 19, 2020
1 parent 0d27a8e commit 756aeef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datalad/support/annexrepo.py
Expand Up @@ -3772,7 +3772,8 @@ def __init__(self, annex_cmd, git_options=None, annex_options=None, path=None,
annex_cmd + \
(annex_options if annex_options else []) + \
(['--json', '--json-error-messages'] if json else []) + \
['--batch'] # , '--debug']
['--batch'] + \
(['--debug'] if lgr.getEffectiveLevel() <= 8 else [])
output_proc = \
output_proc if output_proc else readline_json if json else None
super(BatchedAnnex, self).__init__(
Expand Down

0 comments on commit 756aeef

Please sign in to comment.