builtin/replicate: Fix crash when logging at debug or trace levels
This commit is contained in:
parent
ab4d0dfb73
commit
9ef4bedf5f
@ -437,8 +437,7 @@ struct Module: public interface::Module, public replicate::Interface
|
||||
|
||||
void send_to_peer(PeerId peer, const ss_ &name, const magic::VectorBuffer &buf)
|
||||
{
|
||||
log_d(MODULE, "%s: Update size: %zu, data=%s",
|
||||
cs(name), buf.GetBuffer().Size());
|
||||
log_d(MODULE, "%s: Update size: %zu", cs(name), buf.GetBuffer().Size());
|
||||
ss_ data = buf_to_string(buf);
|
||||
network::access(m_server, [&](network::Interface *inetwork){
|
||||
inetwork->send(peer, name, data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user