diff --git a/lib/site_maps/runner/event_listener.rb b/lib/site_maps/runner/event_listener.rb index c828a58..46b0e11 100644 --- a/lib/site_maps/runner/event_listener.rb +++ b/lib/site_maps/runner/event_listener.rb @@ -23,7 +23,7 @@ def on_sitemaps_runner_enqueue_process(event) location: colorize(location, :lightgray) ) if kwargs.any? - print_message("--> Keyword Arguments: {%s}", kwargs: kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", ")) + print_message("└── Keyword Arguments: {%s}", kwargs: kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", ")) end end @@ -37,7 +37,7 @@ def on_sitemaps_runner_before_process_execution(event) location: colorize(location, :lightgray) ) if kwargs.any? - print_message("--> Keyword Arguments: {%s}", kwargs: kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", ")) + print_message("└── Keyword Arguments: {%s}", kwargs: kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", ")) end end @@ -52,7 +52,7 @@ def on_sitemaps_runner_process_execution(event) runtime: formatted_runtime(event[:runtime]) ) if kwargs.any? - print_message("--> Keyword Arguments: {%s}", kwargs: kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", ")) + print_message("└── Keyword Arguments: {%s}", kwargs: kwargs.map { |k, v| "#{k}: #{v.inspect}" }.join(", ")) end end diff --git a/spec/site_maps/runner/event_listener_spec.rb b/spec/site_maps/runner/event_listener_spec.rb index 6adfde9..13f5280 100644 --- a/spec/site_maps/runner/event_listener_spec.rb +++ b/spec/site_maps/runner/event_listener_spec.rb @@ -73,7 +73,7 @@ it "prints message" do expect { call! }.to output(<<~MSG).to_stdout Enqueue process #{colorize("posts", :bold)} at #{colorize("posts/2024-11/sitemap.xml", :lightgray)} - --> Keyword Arguments: {year: 2024, month: 11} + └── Keyword Arguments: {year: 2024, month: 11} MSG end end @@ -123,7 +123,7 @@ it "prints message" do expect { call! }.to output(<<~MSG).to_stdout Executing process #{colorize("posts", :bold)} at #{colorize("posts/2024-11/sitemap.xml", :lightgray)} - --> Keyword Arguments: {year: 2024, month: 11} + └── Keyword Arguments: {year: 2024, month: 11} MSG end end @@ -176,7 +176,7 @@ it "prints message" do expect { call! }.to output(<<~MSG).to_stdout [#{formatted_runtime(1.32)}] Executed process #{colorize("posts", :bold)} at #{colorize("posts/2024-11/sitemap.xml", :lightgray)} - --> Keyword Arguments: {year: 2024, month: 11} + └── Keyword Arguments: {year: 2024, month: 11} MSG end end