diff --git a/messaging/copr_messaging/schema.py b/messaging/copr_messaging/schema.py index ab8b18023..67f90449d 100644 --- a/messaging/copr_messaging/schema.py +++ b/messaging/copr_messaging/schema.py @@ -20,6 +20,8 @@ import copy +from fedora_messaging import message + from copr_common.enums import StatusEnum from .private.hierarchy import _BuildChrootMessage, _CoprMessage @@ -100,6 +102,12 @@ class BuildChrootStartedV1DontUse(_PreFMBuildMessage, BuildChrootStarted): """ topic = 'copr.chroot.start' + # Set the chroot message severity to DEBUG, which will not generate a notification in FMN by + # default. Those are always paired with a build message, so it makes more sense to notify on + # that one. + # Ref: https://fedora-messaging.readthedocs.io/en/stable/user-guide/messages.html#useful-accessors + severity = message.DEBUG + class BuildChrootStartedV1Stomp(schema_stomp_old._OldStompChrootMessage, BuildChrootStarted):