Skip to content

Commit

Permalink
proxy: improve http logs
Browse files Browse the repository at this point in the history
  • Loading branch information
petuhovskiy committed Aug 11, 2023
1 parent d39fd66 commit 2743614
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proxy/src/http/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async fn ws_handler(
if let Err(e) =
serve_websocket(websocket, config, &cancel_map, session_id, host).await
{
error!(session_id = ?session_id, "error in websocket connection: {e:?}");
error!(session_id = ?session_id, "error in websocket connection: {e:#}");
}
}
.in_current_span(),
Expand Down Expand Up @@ -221,6 +221,10 @@ async fn ws_handler(
},
None => Value::Null,
};
error!(
?code,
"sql-over-http per-client task finished with an error: {e:#}"
);
(
json!({ "message": message, "code": code }),
HashMap::default(),
Expand Down

0 comments on commit 2743614

Please sign in to comment.