Mercurial > prosody-modules
comparison mod_sentry/mod_sentry.lua @ 5008:bd63feda3704
Merge role-auth
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 22 Aug 2022 15:39:02 +0100 |
| parents | cb3de818ff55 |
| children | 2e87110475ec |
comparison
equal
deleted
inserted
replaced
| 4994:cce12a660b98 | 5008:bd63feda3704 |
|---|---|
| 26 end; | 26 end; |
| 27 message_pattern = function (pattern, _, _, message) | 27 message_pattern = function (pattern, _, _, message) |
| 28 return not not message:match(pattern); | 28 return not not message:match(pattern); |
| 29 end; | 29 end; |
| 30 }; | 30 }; |
| 31 | |
| 32 local serialize = require "util.serialization".serialize; | |
| 31 | 33 |
| 32 local function sentry_error_handler(e) | 34 local function sentry_error_handler(e) |
| 33 module:log("error", "Failed to submit event to sentry: %s", e); | 35 module:log("error", "Failed to submit event to sentry: %s", e); |
| 34 end | 36 end |
| 35 | 37 |
