@@ -268,8 +268,8 @@ class FileConfigSource : public ConfigSource {
268268 int priority,
269269 const Options& opts = Options{})
270270 : name_(name), priority_(priority), options_(opts) {
271- GOPHER_LOG (Info, " FileConfigSource created: name={} priority={}" ,
272- name_, priority_);
271+ GOPHER_LOG (Info, " FileConfigSource created: name={} priority={}" , name_,
272+ priority_);
273273 }
274274
275275 std::string getName () const override { return name_; }
@@ -285,18 +285,15 @@ class FileConfigSource : public ConfigSource {
285285 mcp::json::JsonValue loadConfiguration () override {
286286 // Keep logs under config.file so tests that attach a sink to
287287 // "config.file" see discovery start/end messages.
288- GOPHER_LOG (Info, " Starting configuration discovery for source: {}{}" ,
289- name_,
290- (options_.trace_id .empty ()
291- ? " "
292- : (" trace_id=" + options_.trace_id )));
288+ GOPHER_LOG (
289+ Info, " Starting configuration discovery for source: {}{}" , name_,
290+ (options_.trace_id .empty () ? " " : (" trace_id=" + options_.trace_id )));
293291
294292 // Determine the config file path using deterministic search order
295293 std::string config_path = findConfigFile ();
296294
297295 if (config_path.empty ()) {
298- GOPHER_LOG (Warning, " No configuration file found for source: {}" ,
299- name_);
296+ GOPHER_LOG (Warning, " No configuration file found for source: {}" , name_);
300297 return mcp::json::JsonValue::object ();
301298 }
302299
@@ -321,12 +318,12 @@ class FileConfigSource : public ConfigSource {
321318 base_config_path_ = config_path;
322319
323320 // Emit a brief summary and also dump top-level keys/types to aid debugging
324- GOPHER_LOG (
325- Info,
326- " Configuration discovery completed: files_parsed ={} "
327- " includes_processed={} env_vars_expanded={} overlays_applied={} " ,
328- context. files_parsed_count , context.includes_processed_count ,
329- context. env_vars_expanded_count , context.overlays_applied .size ());
321+ GOPHER_LOG (Info,
322+ " Configuration discovery completed: files_parsed={} "
323+ " includes_processed ={} env_vars_expanded={} overlays_applied={} " ,
324+ context. files_parsed_count , context. includes_processed_count ,
325+ context.env_vars_expanded_count ,
326+ context.overlays_applied .size ());
330327
331328 if (config.isObject ()) {
332329 for (const auto & key : config.keys ()) {
@@ -451,8 +448,7 @@ class FileConfigSource : public ConfigSource {
451448 if (exists (path)) {
452449 // Determine which source won
453450 if (i == 0 && !explicit_config_path_.empty ()) {
454- GOPHER_LOG (Info, " Configuration source won: CLI --config={}" ,
455- path);
451+ GOPHER_LOG (Info, " Configuration source won: CLI --config={}" , path);
456452 } else if ((i == 0 || i == 1 ) && env_config) {
457453 GOPHER_LOG (
458454 Info,
@@ -483,8 +479,7 @@ class FileConfigSource : public ConfigSource {
483479 }
484480 size_t file_size = st.st_size ;
485481 if (file_size > options_.max_file_size ) {
486- GOPHER_LOG (Error,
487- " File exceeds maximum size limit: {} size={} limit={}" ,
482+ GOPHER_LOG (Error, " File exceeds maximum size limit: {} size={} limit={}" ,
488483 filepath, file_size, options_.max_file_size );
489484 throw std::runtime_error (" File too large: " + filepath + " (" +
490485 std::to_string (file_size) + " bytes)" );
@@ -499,14 +494,12 @@ class FileConfigSource : public ConfigSource {
499494 context.latest_mtime = file_mtime;
500495 }
501496
502- GOPHER_LOG (Debug,
503- " Loading configuration file: {} size={} last_modified={}" ,
497+ GOPHER_LOG (Debug, " Loading configuration file: {} size={} last_modified={}" ,
504498 filepath, file_size, last_modified);
505499
506500 std::ifstream file (filepath);
507501 if (!file.is_open ()) {
508- GOPHER_LOG (Error, " Failed to open configuration file: {}" ,
509- filepath);
502+ GOPHER_LOG (Error, " Failed to open configuration file: {}" , filepath);
510503 throw std::runtime_error (" Cannot open config file: " + filepath);
511504 }
512505
@@ -932,8 +925,7 @@ class FileConfigSource : public ConfigSource {
932925 const mcp::json::JsonValue& base_config,
933926 const path& overlay_dir,
934927 ParseContext& context) {
935- GOPHER_LOG (Info, " Scanning config.d directory: {}" ,
936- overlay_dir.string ());
928+ GOPHER_LOG (Info, " Scanning config.d directory: {}" , overlay_dir.string ());
937929
938930 mcp::json::JsonValue result = base_config;
939931 std::vector<path> overlay_files;
0 commit comments