From c1fe875a2cf1f88ee9539c97bb340978f8bf5443 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 19 Sep 2014 01:11:40 +0300 Subject: [PATCH] client/state, packet_stream: Tidy up logging --- src/client/state.cpp | 2 -- src/impl/packet_stream.cpp | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/state.cpp b/src/client/state.cpp index e93cba1..056d4c4 100644 --- a/src/client/state.cpp +++ b/src/client/state.cpp @@ -82,8 +82,6 @@ struct CState: public State void handle_packet(const ss_ &packet_name, const ss_ &data) { - log_i(MODULE, "Received packet name: %s", cs(packet_name)); - if(packet_name == "core:run_script"){ log_i(MODULE, "Asked to run script:\n----\n%s\n----", cs(data)); if(m_app) diff --git a/src/impl/packet_stream.cpp b/src/impl/packet_stream.cpp index 73ad338..ecc17ed 100644 --- a/src/impl/packet_stream.cpp +++ b/src/impl/packet_stream.cpp @@ -41,11 +41,12 @@ void PacketStream::input(std::deque &socket_buffer, if(data.size() < 6 + name1_size) continue; ss_ name1(&data.c_str()[6], name1_size); - log_i(MODULE, "Packet definition: %zu = %s", type1, cs(name1)); + log_v(MODULE, "<< core:define_packet_type %zu %s", type1, cs(name1)); m_incoming_types.set(type1, name1); continue; } + log_v(MODULE, "<< %s", cs(name)); cb(name, data); } }