message: Log early messages from a separate thread
diff: @@ -458,6 +458,16 @@ int main(int argc, char** argv)
  }
  LOG_INFO_FMT("Initialising enclave: enclave_create_node");
  + std::atomic<bool> ecall_completed = false;
  + auto flush_outbound = [&]() {
  + do
  + {
  + std::this_thread::sleep_for(std::chrono::milliseconds(100));
  +
  + bp.read_all(circuit.read_from_inside());
  + } while (!ecall_completed);
  + };
  + std::thread flusher_thread(flush_outbound);
  auto create_status = enclave.create_node(
  enclave_config,
  startup_config,
  @@ -466,6 +476,8 @@ int main(int argc, char** argv)
  config.command.type,
  config.worker_threads,
  time_updater->behaviour.get_value());
  + ecall_completed.store(true);
  + flusher_thread.join();
  if (create_status != CreateNodeStatus::OK)
  {
  