view misc/mtail/prosody.mtail @ 5798:fdf3056021dc

mod_http_oauth2: Tweak fallback error text Since the oauth error is more like the error condition, a symbolic error code, not the most human-friendly. Many error cases do have human-readable error descriptions that should be fine on their own, or changed to be. As a fallback, capitalize the error name.
author Kim Alvefur <zash@zash.se>
date Sat, 23 Dec 2023 00:01:30 +0100
parents c217f4edfc4f
children
line wrap: on
line source

counter prosody_log_messages by level

/^(?P<date>(?P<legacy_date>\w+\s+\d+\s+\d+:\d+:\d+)|(?P<rfc3339_date>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d+[+-]\d{2}:\d{2})) (?P<sink>\S+)\s(?P<loglevel>\w+)\s(?P<message>.*)/ {
	len($legacy_date) > 0 {
		strptime($2, "Jan _2 15:04:05")
	}
	len($rfc3339_date) > 0 {
		strptime($rfc3339_date, "2006-01-02T03:04:05-0700")
	}
	$loglevel != "" {
		prosody_log_messages[$loglevel]++
	}
}