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) {
105
105
} else
106
106
loguru::g_stderr_verbosity = log_level;
107
107
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
-
114
108
// read out the [ports] parameters
115
109
multicast_port_ = pt.get (" ports.MulticastPort" , 16571 );
116
110
base_port_ = pt.get (" ports.BasePort" , 16572 );
@@ -269,6 +263,12 @@ void api_config::load_from_file(const std::string &filename) {
269
263
smoothing_halftime_ = pt.get (" tuning.SmoothingHalftime" , 90 .0F );
270
264
force_default_timestamps_ = pt.get (" tuning.ForceDefaultTimestamps" , false );
271
265
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
+
272
272
} catch (std::exception &e) {
273
273
LOG_F (ERROR, " Error parsing config file '%s': '%s', rolling back to defaults" ,
274
274
filename.c_str (), e.what ());
You can’t perform that action at this time.
0 commit comments