Skip to content

Commit 7238bc4

Browse files
committed
feat: change webhook execution failure log to info
1 parent 944adc8 commit 7238bc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/pact_broker/domain/webhook_request.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def log_completion_message success
196196
end
197197

198198
def log_error e
199-
logger.error "Error executing webhook #{uuid} #{e.class.name} - #{e.message} #{e.backtrace.join("\n")}"
199+
logger.info "Error executing webhook #{uuid} #{e.class.name} - #{e.message} #{e.backtrace.join("\n")}"
200200

201201
if options[:show_response]
202202
execution_logger.error "Error executing webhook #{uuid} #{e.class.name} - #{e.message}"

spec/lib/pact_broker/domain/webhook_request_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ class WebhookTestError < StandardError; end
310310
end
311311

312312
it "logs the error" do
313-
expect(logger).to receive(:error).with(/Error.*WebhookTestError.*blah/)
313+
expect(logger).to receive(:info).with(/Error.*WebhookTestError.*blah/)
314314
execute
315315
end
316316

0 commit comments

Comments
 (0)