# HG changeset patch # User Aurelien Campeas # Date 1347018535 -7200 # Node ID 6ed331fd4347635bc233ad45d7ba08003e4feada # Parent 73469aa94afec683c6104beff83533468abe560a [hooks/syncshema] fix logging level and nicer message (wrong changeset published previously) diff -r 73469aa94afe -r 6ed331fd4347 hooks/syncschema.py --- a/hooks/syncschema.py Fri Aug 31 13:19:39 2012 +0200 +++ b/hooks/syncschema.py Fri Sep 07 13:48:55 2012 +0200 @@ -757,9 +757,9 @@ for sql in sqls: try: session.system_sql(sql) - except Exception: # should be ProgrammingError + except Exception, exc: # should be ProgrammingError if sql.startswith('DROP'): - self.critical('execute of `%s` failed', sql) + self.error('execute of `%s` failed (cause: %s)', sql, exc) continue raise