Skip to content

Commit

Permalink
refactor(chalice): enhanced CH exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
tahayk committed Apr 4, 2024
1 parent afb32d8 commit 4cef14f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ee/api/chalicelib/utils/ch_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ def execute(self, query, params=None, **args):
keys = tuple(x for x, y in results[1])
return [dict(zip(keys, i)) for i in results[0]]
except Exception as err:
logging.error("--------- CH EXCEPTION -----------")
logging.error(err)
logging.error("--------- CH QUERY EXCEPTION -----------")
logging.error(self.format(query=query, params=params))
logging.error(self.format(query=query, params=params).replace('\n','\\n'))
logging.error("--------------------")
raise err

Expand Down

0 comments on commit 4cef14f

Please sign in to comment.