Skip to content

Commit

Permalink
Split logging into info and debug
Browse files Browse the repository at this point in the history
  • Loading branch information
po09i committed Apr 25, 2022
1 parent a82a836 commit d285794
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dcm2bids/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ def check_github_latest(githubRepo, timeout=3):
try:
output = check_output(shlex.split("curl --silent " + url), timeout=timeout)
except:
logger.debug(
"Checking latest version of %s was not possible", githubRepo,
exc_info=True,
)
logger.info(f"Checking latest version of {githubRepo} was not possible")
logger.debug(f"Error while 'curl --silent {url}'", exc_info=True)
return

# The output should have this format
Expand Down

0 comments on commit d285794

Please sign in to comment.