client/state, packet_stream: Tidy up logging
This commit is contained in:
parent
8da0f11df9
commit
c1fe875a2c
@ -82,8 +82,6 @@ struct CState: public State
|
|||||||
|
|
||||||
void handle_packet(const ss_ &packet_name, const ss_ &data)
|
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"){
|
if(packet_name == "core:run_script"){
|
||||||
log_i(MODULE, "Asked to run script:\n----\n%s\n----", cs(data));
|
log_i(MODULE, "Asked to run script:\n----\n%s\n----", cs(data));
|
||||||
if(m_app)
|
if(m_app)
|
||||||
|
@ -41,11 +41,12 @@ void PacketStream::input(std::deque<char> &socket_buffer,
|
|||||||
if(data.size() < 6 + name1_size)
|
if(data.size() < 6 + name1_size)
|
||||||
continue;
|
continue;
|
||||||
ss_ name1(&data.c_str()[6], name1_size);
|
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);
|
m_incoming_types.set(type1, name1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log_v(MODULE, "<< %s", cs(name));
|
||||||
cb(name, data);
|
cb(name, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user