summaryrefslogtreecommitdiff
path: root/python/skytools/scripting.py
diff options
context:
space:
mode:
authorMarko Kreen2012-11-01 09:28:50 +0000
committerMarko Kreen2012-11-02 08:40:09 +0000
commit40a294b729a6815803457bde739ddf7a9bf6b170 (patch)
tree2d62d6adccbf2eaab8937d9109bb769495bc0baf /python/skytools/scripting.py
parent978bd17e1cd71f7e5cc0cdad1772c68c3c81dd81 (diff)
Londiste: try to show exact event info on failure.
This should help debugging replication problems. It does not work on first error, as we batch together a lot of SQL statements, but on retry Londiste start replaying events one-by-one, the the exact event can be spotted. DBScript unnecessarily overrided emsg, drop that.
Diffstat (limited to 'python/skytools/scripting.py')
-rw-r--r--python/skytools/scripting.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/python/skytools/scripting.py b/python/skytools/scripting.py
index 049da251..ff8eac79 100644
--- a/python/skytools/scripting.py
+++ b/python/skytools/scripting.py
@@ -774,7 +774,6 @@ class DBScript(BaseScript):
sql = getattr(curs, 'query', '?')
if len(sql) > 200: # avoid logging londiste huge batched queries
sql = sql[:60] + " ..."
- emsg = str(d).strip()
self.log.exception("Job %s got error on connection '%s': %s. Query: %s" % (
self.job_name, cname, emsg, sql))
else: