comparison mod_sentry/mod_sentry.lua @ 4995:cb3de818ff55

mod_sentry: Log warning when server returns unexpected response
author Matthew Wild <mwild1@gmail.com>
date Wed, 13 Jul 2022 11:14:04 +0100
parents 2c73544e33ea
children
comparison
equal deleted inserted replaced
4988:732229fe68ab 4995:cb3de818ff55
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