comparison sat/memory/sqlite.py @ 2919:e4715a609d75

memory (sqlite): minor log improvment
author Goffi <goffi@goffi.org>
date Fri, 26 Apr 2019 11:57:26 +0200
parents 21cf8395616c
children c0f6fd75af5f
comparison
equal deleted inserted replaced
2918:21cf8395616c 2919:e4715a609d75
172 except Exception as e: 172 except Exception as e:
173 retry -= 1 173 retry -= 1
174 if retry == 0: 174 if retry == 0:
175 log.error( 175 log.error(
176 _(u'too many interaction tries, we abandon! Error message: {msg}\n' 176 _(u'too many interaction tries, we abandon! Error message: {msg}\n'
177 u'interaction was {args}' 177 u'interaction method was: {interaction}\n'
178 .format(msg=e, args=u' '.join([unicode(a) for a in args])))) 178 u'interaction arguments were: {args}'
179 .format(msg=e, interaction=interaction,
180 args=u', '.join([unicode(a) for a in args]))))
179 raise e 181 raise e
180 log.warning( 182 log.warning(
181 _(u'exception while running interaction, retrying ({try_}): {msg}') 183 _(u'exception while running interaction, retrying ({try_}): {msg}')
182 .format(try_ = 4 - retry, msg = e)) 184 .format(try_ = 4 - retry, msg = e))
183 kw['interaction_retry'] = retry 185 kw['interaction_retry'] = retry