Compare commits

...

2 Commits

Author SHA1 Message Date
a2a630893f
[ui] better default windows size 2024-11-14 00:43:33 +01:00
0eb332c14d
[logging] make message logging clearer 2024-11-14 00:42:54 +01:00
3 changed files with 6 additions and 10 deletions

View File

@ -97,10 +97,10 @@ pub async fn run(
data.extend_from_slice(&bytes); data.extend_from_slice(&bytes);
} }
log::debug!("{} bytes received from server", data.len()); log::debug!("{} bytes received from server", data.len());
log::trace!("server response (RAW): {}", String::from_utf8_lossy(&data)); log::trace!("msg: (raw): {}", String::from_utf8_lossy(&data));
let response = Response::decode(data.freeze()); let response = Response::decode(data.freeze());
log::trace!("server response (DECODED): {response:?}"); log::trace!("msg: {response:?}");
match response { match response {
Response::Games(games) => { Response::Games(games) => {

View File

@ -71,17 +71,13 @@ impl Server {
// handle streams // handle streams
while let Ok(Some(data)) = rx.receive().await { while let Ok(Some(data)) = rx.receive().await {
tracing::trace!( tracing::trace!(
"{} client request (raw): {}", "{} msg: (raw): {}",
conn_ctx.remote_addr, conn_ctx.remote_addr,
String::from_utf8_lossy(&data) String::from_utf8_lossy(&data)
); );
let request = Request::decode(data); let request = Request::decode(data);
tracing::debug!( tracing::debug!("{} msg: {:?}", conn_ctx.remote_addr, request);
"{} client request (decoded): {:?}",
conn_ctx.remote_addr,
request
);
let response = let response =
conn_ctx.server_ctx.handler.handle_request(request).await; conn_ctx.server_ctx.handler.handle_request(request).await;
tracing::trace!( tracing::trace!(

View File

@ -13,8 +13,8 @@
"windows": [ "windows": [
{ {
"title": "lanspread-tauri-deno-ts", "title": "lanspread-tauri-deno-ts",
"width": 800, "width": 1526,
"height": 600 "height": 1120
} }
], ],
"security": { "security": {