From 7f17d1b280a5822acf668cebab4372a77ad57ea0 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Mon, 10 Apr 2023 17:14:16 +0200 Subject: [PATCH] Add some logging --- src/client/component/auth.cpp | 5 +++++ src/client/component/network.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/client/component/auth.cpp b/src/client/component/auth.cpp index 959d6e57..6d5ad34d 100644 --- a/src/client/component/auth.cpp +++ b/src/client/component/auth.cpp @@ -104,6 +104,8 @@ namespace auth buffer.write_string(data, static_cast(length)); + printf("Serialized with size: %llX\n", buffer.get_buffer().size()); + return buffer.move_buffer(); } @@ -141,6 +143,9 @@ namespace auth return; } + + printf("Deserialized with size: %llX\n", data.size()); + utils::byte_buffer buffer(data); const profile_infos::profile_info info(buffer); diff --git a/src/client/component/network.cpp b/src/client/component/network.cpp index c517e862..da384f16 100644 --- a/src/client/component/network.cpp +++ b/src/client/component/network.cpp @@ -258,7 +258,7 @@ namespace network int net_sendpacket_stub(const game::netsrc_t sock, const int length, const char* data, const game::netadr_t* to) { - printf("Sending packet of size: %X\n", length); + //printf("Sending packet of size: %X\n", length); if (to->type != game::NA_RAWIP) {