You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -176,7 +176,7 @@ req.setAttribute("error-info", "Page not found");
176
176
177
177
###### Improving error messages
178
178
179
-
It is possible to filter the error message to avoid long messages or personal info exposed in the metrics. To do it, three params may be used: `error-info-regex`, `error-info-regex-index`, and `error-info-max-size`. The first will set the regex to apply in the message, with `^([a-zA-z0-9 ]{0,120})` as the default value. The second, `error-info-regex-index`, selects the group of the regex's result with `0` as the default value. The last one, `error-info-max-size`, defines the max size of the message to be truncated and has `120` as the default value.
179
+
It is possible to filter the error message to avoid long messages or personal info exposed in the metrics. To do it, two params may be used: `error-info-regex`and `error-info-max-size`. The first will set the regex to apply in the message, with `[^A-zÀ-ú .,]+` as the default value. The second, `error-info-max-size`, defines the max size of the message to be truncated and has `50` as the default value.
0 commit comments