From 8dbf7164557ade7e47880dc87cae26296a4fe796 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Tue, 13 Feb 2024 12:06:46 +0900 Subject: [PATCH] style: correct call to logger.exception (#294) --- packages/duckdb-server/pkg/server.py | 4 ++-- packages/widget/mosaic_widget/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/duckdb-server/pkg/server.py b/packages/duckdb-server/pkg/server.py index 75230be1..86232aab 100644 --- a/packages/duckdb-server/pkg/server.py +++ b/packages/duckdb-server/pkg/server.py @@ -103,7 +103,7 @@ def handle_query(handler: Handler, con, cache, query): else: raise ValueError(f"Unknown command {command}") except Exception as e: - logger.exception(e) + logger.exception("Eror processing query") handler.error(e) total = round((time.time() - start) * 1_000) @@ -134,7 +134,7 @@ def ws_message(ws, message, opcode): try: query = ujson.loads(message) except Exception as e: - logger.exception(e) + logger.exception("Error reading message from WebSocket") handler.error(e) return diff --git a/packages/widget/mosaic_widget/__init__.py b/packages/widget/mosaic_widget/__init__.py index 3bc97e28..037593a3 100644 --- a/packages/widget/mosaic_widget/__init__.py +++ b/packages/widget/mosaic_widget/__init__.py @@ -102,7 +102,7 @@ def _handle_custom_msg(self, data: dict, buffers: list): else: raise ValueError(f"Unknown command {command}") except Exception as e: - logger.exception() + logger.exception("Error processing query") self.send({"error": str(e), "uuid": uuid}) total = round((time.time() - start) * 1_000)