Table of Contents

Property SuppressSlowConsumerWarnings

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

SuppressSlowConsumerWarnings

Gets or sets a value indicating whether to suppress warning logs when a slow consumer is detected. The default is false, meaning warnings will be logged once per slow consumer episode.

public bool SuppressSlowConsumerWarnings { get; init; }

Property Value

bool

Remarks

When a subscription becomes a slow consumer (dropping messages due to channel capacity limits), a warning is logged once. The warning will be logged again if the subscription recovers (channel drains to nearly empty) and then becomes slow again.

Note that the MessageDropped and SlowConsumerDetected events will still fire regardless of this setting.