Mercurial > prosody-modules
comparison mod_sentry/sentry.lib.lua @ 4287:2c4157785b42
mod_sentry: Don't include tracebacks in extra context
They're supplied as a proper stack trace now.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 09 Dec 2020 16:12:35 +0000 |
parents | 64f400a38a30 |
children | 26bc1ae88ccb |
comparison
equal
deleted
inserted
replaced
4286:64f400a38a30 | 4287:2c4157785b42 |
---|---|
46 local function get_error_data(instance_id, context) | 46 local function get_error_data(instance_id, context) |
47 local data = { | 47 local data = { |
48 instance_id = instance_id; | 48 instance_id = instance_id; |
49 }; | 49 }; |
50 for k, v in pairs(context) do | 50 for k, v in pairs(context) do |
51 data[k] = tostring(v); | 51 if k ~= "traceback" then |
52 data[k] = tostring(v); | |
53 end | |
52 end | 54 end |
53 return data; | 55 return data; |
54 end | 56 end |
55 | 57 |
56 local function error_to_sentry_exception(e) | 58 local function error_to_sentry_exception(e) |