File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -105,12 +105,6 @@ void api_config::load_from_file(const std::string &filename) {
105105 } else
106106 loguru::g_stderr_verbosity = log_level;
107107
108- // log config filename only after setting the verbosity level
109- if (!filename.empty ())
110- LOG_F (INFO, " Configuration loaded from %s" , filename.c_str ());
111- else
112- LOG_F (INFO, " Loaded default config" );
113-
114108 // read out the [ports] parameters
115109 multicast_port_ = pt.get (" ports.MulticastPort" , 16571 );
116110 base_port_ = pt.get (" ports.BasePort" , 16572 );
@@ -269,6 +263,12 @@ void api_config::load_from_file(const std::string &filename) {
269263 smoothing_halftime_ = pt.get (" tuning.SmoothingHalftime" , 90 .0F );
270264 force_default_timestamps_ = pt.get (" tuning.ForceDefaultTimestamps" , false );
271265
266+ // log config filename only after setting the verbosity level and all config has been read
267+ if (!filename.empty ())
268+ LOG_F (INFO, " Configuration loaded from %s" , filename.c_str ());
269+ else
270+ LOG_F (INFO, " Loaded default config" );
271+
272272 } catch (std::exception &e) {
273273 LOG_F (ERROR, " Error parsing config file '%s': '%s', rolling back to defaults" ,
274274 filename.c_str (), e.what ());
You can’t perform that action at this time.
0 commit comments