Skip to content

Commit

Permalink
fix: initiate zenoh logger
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanYuYuan committed Sep 17, 2024
1 parent fce8a62 commit 09c5cbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rmw_zenoh_cpp/src/rmw_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ rmw_init(const rmw_init_options_t * options, rmw_context_t * context)
return RMW_RET_ERROR;
}

zc_try_init_log_from_env();

// Initialize the zenoh configuration.
z_owned_config_t config;
if ((ret =
Expand Down
2 changes: 2 additions & 0 deletions rmw_zenoh_cpp/src/zenohd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ int main(int argc, char ** argv)
return 1;
}

zc_try_init_log_from_env();

// Initialize the zenoh configuration for the router.
z_owned_config_t config;
if ((rmw_zenoh_cpp::get_z_config(
Expand Down

0 comments on commit 09c5cbc

Please sign in to comment.