retry
retry copied to clipboard
Logging doesn't properly format message
Hey,
I pass a logbook.Logger
instance to the logger variable of retry
:
@retry(exceptions=ConnectionError, tries=MAX_RETRIES, delay=RETRY_TIMEOUT, logger=logger)
And the matching logline I get is:
[2018-05-10 09:36:57.321720] WARNING: vector.core.file_collection.es_utils: %s, retrying in %s seconds...
(The %s
are not properly formated)
Can you fix that? thanks!
Any news on that ? @AlonSh maybe a PR if you made the change on your side ?
Any news on that ? @AlonSh maybe a PR if you made the change on your side ?
I think I've just kept using it that way, but I don't remember exactly and I do not have access to the relevant code anymore. It's not a difficult fix