recipe/request: Log if request fails
/reviewed-on nexedi/slapos!166
Showing
-
Owner
Do not use
%
. Let thelogging
module format the message from extra arguments. For example:>>> import logging >>> logging.error('%s:%s', 'foo', 'bar') ERROR:root:foo:bar >>> logging.error('%(foo)s', dict(foo='bar')) ERROR:root:bar
Please register or sign in to comment