Skip to content
Snippets Groups Projects
Commit ccaaee09 authored by ale's avatar ale
Browse files

save last error timestamp in statefile

parent 7baf1584
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,7 @@ class Uploader(object):
log.error('error uploading %s: %s' % (path, str(e)))
stats.data.incr('errors')
stats.data.set('last_error', str(e))
stats.data.set('last_error_timestamp', '%i' % time.time())
finally:
log.debug('uploader thread exiting')
self.db.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment