From a576d76fdab024118d683aca6affa3db2a86107b Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 15 Nov 2021 00:30:50 +0100 Subject: [PATCH] Serialize trestrun for Sentry logging --- app/models/linter_check_run.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/linter_check_run.rb b/app/models/linter_check_run.rb index 00f96a73..cec22210 100644 --- a/app/models/linter_check_run.rb +++ b/app/models/linter_check_run.rb @@ -24,7 +24,7 @@ class LinterCheckRun < ApplicationRecord ) rescue ActiveRecord::RecordInvalid # Something bad happened. Probably, the RegEx in lib/py_lint_adapter.rb didn't work. - Sentry.set_extras(testrun: testrun, linter_result: linter_result) + Sentry.set_extras(testrun: testrun.inspect, linter_result: linter_result) end end end