fabric-bridge: flush logs on info, log worker thread start
This commit is contained in:
@@ -57,6 +57,7 @@ int NodeRunner::exec(std::unique_ptr<Node> node) {
|
|||||||
std::signal(SIGINT, signal_handler);
|
std::signal(SIGINT, signal_handler);
|
||||||
std::signal(SIGTERM, signal_handler);
|
std::signal(SIGTERM, signal_handler);
|
||||||
|
|
||||||
|
spdlog::flush_on(spdlog::level::info);
|
||||||
spdlog::info("Starting node '{}' type='{}'", node_id_, node->type());
|
spdlog::info("Starting node '{}' type='{}'", node_id_, node->type());
|
||||||
|
|
||||||
if (!std::filesystem::exists(mxl_domain_)) {
|
if (!std::filesystem::exists(mxl_domain_)) {
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ void FabricBridgeNode::on_remove_reader(const std::string& port_id) {
|
|||||||
|
|
||||||
void FabricBridgeNode::process() {
|
void FabricBridgeNode::process() {
|
||||||
if (!worker_thread_.has_value() && start_requested_.load()) {
|
if (!worker_thread_.has_value() && start_requested_.load()) {
|
||||||
running_ = true;
|
spdlog::info("Fabric-bridge: starting worker thread (mode={})", mode_ == FabricMode::Initiator ? "initiator" : "target");
|
||||||
if (mode_ == FabricMode::Initiator) {
|
if (mode_ == FabricMode::Initiator) {
|
||||||
worker_thread_ = std::thread(&FabricBridgeNode::run_initiator, this);
|
worker_thread_ = std::thread(&FabricBridgeNode::run_initiator, this);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user