Serialize trestrun for Sentry logging

This commit is contained in:
Sebastian Serth
2021-11-15 00:30:50 +01:00
parent e34656eb0f
commit a576d76fda

View File

@ -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