And another one

This commit is contained in:
Michael Kolupaev 2024-05-03 20:27:50 +00:00
parent 22d695c995
commit 3317234bbf

View File

@ -222,7 +222,10 @@ select 'noisy Debug messages',
-- Same as above for Info
WITH 0.05 as threshold
select 'noisy Info messages',
greatest(coalesce(((select message_format_string, count() from logs where level = 'Information' group by message_format_string order by count() desc limit 1) as top_message).2, 0) / (select count() from logs), threshold) as r,
greatest(coalesce(((select message_format_string, count() from logs
where level = 'Information'
and message_format_string not in ('Sorting and writing part of data into temporary file {}', 'Done writing part of data into temporary file {}, compressed {}, uncompressed {}')
group by message_format_string order by count() desc limit 1) as top_message).2, 0) / (select count() from logs), threshold) as r,
r <= threshold ? '' : top_message.1;
-- Same as above for Warning