diff --git a/orator/connections/connection.py b/orator/connections/connection.py index 469b5989..89904cfa 100644 --- a/orator/connections/connection.py +++ b/orator/connections/connection.py @@ -416,7 +416,7 @@ def log_query(self, query, bindings, time_=None): log += " in %sms" % time_ query_logger.debug( - log, extra={"query": query, "bindings": bindings, "elapsed_time": time_} + log, extra={"query": query.decode("utf-8"), "bindings": bindings, "elapsed_time": time_} ) def _get_elapsed_time(self, start):