mod_sentry/mod_sentry.lua
changeset 4999 cb3de818ff55
parent 4294 2c73544e33ea
equal deleted inserted replaced
4992:732229fe68ab 4999: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