Skip to content

Commit

Permalink
Merge pull request #2406 from spotify/log-non-error-exception-as-warning
Browse files Browse the repository at this point in the history
this feels more like a warning than error
  • Loading branch information
honnix authored Apr 24, 2018
2 parents 1b2f0fd + bc69fc0 commit 498d015
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion luigi/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def _fetch(self, url_suffix, body, log_exceptions=True):
except self._fetcher.raises as e:
last_exception = e
if log_exceptions:
logger.exception("Failed connecting to remote scheduler %r", self._url)
logger.warning("Failed connecting to remote scheduler %r", self._url,
exc_info=True)
continue
else:
raise RPCError(
Expand Down

0 comments on commit 498d015

Please sign in to comment.