Skip to content

Commit

Permalink
init logging a second time after init_config
Browse files Browse the repository at this point in the history
This is needed when logging properties are set in a configuration
file.
  • Loading branch information
rjodinchr committed Dec 6, 2024
1 parent a940e28 commit 3dd6b94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ clvk_global_state::clvk_global_state() {
init_config_from_env_only();
init_logging();
init_config();
// Re-init logging after init_config to take configuration values into
// account.
init_logging();
cvk_info("Starting initialisation");
init_tracing();
init_vulkan();
Expand Down

0 comments on commit 3dd6b94

Please sign in to comment.