diff --git a/eprints2bags/network.py b/eprints2bags/network.py index 7c486d1..d93b4ca 100644 --- a/eprints2bags/network.py +++ b/eprints2bags/network.py @@ -327,8 +327,8 @@ def addurl(text): error = ServiceFailure(addurl(f'Server error (HTTP code {code})')) elif not (200 <= code < 400): error = NetworkFailure(f'Unable to resolve {url}') - if __debug__: log('returning result {}', - 'with error {}'.format(error) if error else 'without error') + if __debug__: log('returning result {}' + + ' with error {}'.format(error) if error else 'without error') return (req, error) diff --git a/eprints2bags/ui.py b/eprints2bags/ui.py index cb898f5..87c2ced 100644 --- a/eprints2bags/ui.py +++ b/eprints2bags/ui.py @@ -29,7 +29,7 @@ import sys if __debug__: - from sidetrack import set_debug, log, logr + from sidetrack import set_debug, log, logf from .exceptions import * @@ -264,7 +264,7 @@ def inform(self, text, *args): if not self._be_quiet: self._print_or_queue(text.format(*args), 'info') else: - if __debug__: log(text, *args) + if __debug__: logf(text, *args) def warn(self, text, *args):