From ccaaee091cab196108c86fe18ea25c188047637a Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sat, 24 Sep 2011 10:12:33 +0100
Subject: [PATCH] save last error timestamp in statefile

---
 client/djrandom_client/upload.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client/djrandom_client/upload.py b/client/djrandom_client/upload.py
index 2066716..e2c7736 100644
--- a/client/djrandom_client/upload.py
+++ b/client/djrandom_client/upload.py
@@ -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()
-- 
GitLab