зеркало из https://github.com/microsoft/CCF.git
Initialize Enclave's loggers ASAP (#412)
This commit is contained in:
Родитель
b52eeebb8f
Коммит
f9ccfe64cc
|
@ -53,6 +53,9 @@ namespace enclave
|
|||
std::make_shared<ccf::Forwarder>(rpcsessions, n2n_channels)),
|
||||
rpc_map(std::make_shared<RpcMap>())
|
||||
{
|
||||
logger::config::msg() = AdminMessage::log_msg;
|
||||
logger::config::writer() = writer_factory.create_writer_to_outside();
|
||||
|
||||
REGISTER_FRONTEND(
|
||||
rpc_map,
|
||||
members,
|
||||
|
@ -72,9 +75,6 @@ namespace enclave
|
|||
frontend->set_cmd_forwarder(cmd_forwarder);
|
||||
}
|
||||
|
||||
logger::config::msg() = AdminMessage::log_msg;
|
||||
logger::config::writer() = writer_factory.create_writer_to_outside();
|
||||
|
||||
node.initialize(raft_config, n2n_channels, rpc_map);
|
||||
rpcsessions.initialize(rpc_map);
|
||||
cmd_forwarder->initialize(rpc_map);
|
||||
|
|
Загрузка…
Ссылка в новой задаче