view misc/mtail/prosody.mtail @ 5808:2465d5191ae9

mod_pubsub_serverinfo: Consider sibling vhosts 'connected' Prosody does not have s2s connections between vhosts. Multiple domains will therefor not show up as each-other 'remote domains'. With this commit, the module considers vhosts permanently s2s-connected. Additional debug logging has been added.
author Guus der Kinderen <guus.der.kinderen@gmail.com>
date Thu, 04 Jan 2024 15:14:19 +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]++
	}
}