client: Clean up logging of received updates
This commit is contained in:
parent
3cde36db08
commit
f43dd14d4c
@ -324,7 +324,7 @@ function Safe.sub_sync_node_added(opts, cb)
|
||||
-- Handle existing nodes
|
||||
local function handle_node(node)
|
||||
local name = node:GetName()
|
||||
log:info("node "..node:GetID()..", name="..name)
|
||||
--log:debug("sub_sync_node_added(): node "..node:GetID()..", name="..name)
|
||||
cb(node)
|
||||
for i = 0, node:GetNumChildren()-1 do
|
||||
handle_node(node:GetChild(i))
|
||||
|
@ -366,7 +366,7 @@ void CState::setup_packet_handlers()
|
||||
uint node_id = msg.ReadNetID();
|
||||
Node *node = scene->GetNode(node_id);
|
||||
if(node){
|
||||
log_v(MODULE, "Updating node %i", node_id);
|
||||
log_d(MODULE, "Updating node %i", node_id);
|
||||
node->ReadLatestDataUpdate(msg);
|
||||
} else {
|
||||
log_w(MODULE, "Out-of-order node data ignored for %i", node_id);
|
||||
@ -381,7 +381,7 @@ void CState::setup_packet_handlers()
|
||||
uint c_id = msg.ReadNetID();
|
||||
Component *c = scene->GetComponent(c_id);
|
||||
if(c){
|
||||
log_v(MODULE, "Updating component %i", c_id);
|
||||
log_d(MODULE, "Updating component %i", c_id);
|
||||
c->ReadLatestDataUpdate(msg);
|
||||
c->ApplyAttributes();
|
||||
} else {
|
||||
|
@ -43,12 +43,12 @@ void PacketStream::input(std::deque<char> &socket_buffer,
|
||||
if(data.size() < 6 + name1_size)
|
||||
continue;
|
||||
ss_ name1(&data.c_str()[6], name1_size);
|
||||
log_v(MODULE, "<< core:define_packet_type %zu %s", type1, cs(name1));
|
||||
log_d(MODULE, "<< core:define_packet_type %zu %s", type1, cs(name1));
|
||||
m_incoming_types.set(type1, name1);
|
||||
continue;
|
||||
}
|
||||
|
||||
log_v(MODULE, "<< %s", cs(name));
|
||||
log_d(MODULE, "<< %s", cs(name));
|
||||
cb(name, data);
|
||||
}
|
||||
}
|
||||
@ -83,7 +83,7 @@ void PacketStream::output(const ss_ &name, const ss_ &data,
|
||||
}
|
||||
}
|
||||
|
||||
log_v(MODULE, ">> %s", cs(name));
|
||||
log_d(MODULE, ">> %s", cs(name));
|
||||
|
||||
// Create actual packet including type and length
|
||||
std::ostringstream os(std::ios::binary);
|
||||
|
Loading…
x
Reference in New Issue
Block a user