Skip to content

Commit

Permalink
Message schemas: set chroot message severity to DEBUG
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Aug 7, 2024
1 parent 70e86dc commit c1deccb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions messaging/copr_messaging/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

import copy

from fedora_messaging import message

from copr_common.enums import StatusEnum

from .private.hierarchy import _BuildChrootMessage, _CoprMessage
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit c1deccb

Please sign in to comment.