Skip to content

Unreliable content warning from DisableAllBeamableEvents should not be overly verbose #4487

@allister-beamable

Description

@allister-beamable

Describe the Bug

When writing a C# Microservice and calling DisableAllBeamableEvents() on the BeamServer, as one might do when registering a custom notification event handler, the resulting server uses UnreliableContentService which emits a log warning about every single piece of content, along the lines of:

The content=["things.my_cool_things.coolest_thing"] may be unreliable. When the Microservice's "DisableAllBeamableEvents" is enabled, the Microservice will never receive content updates.
...

(example of some code that invokes DisableAllBeamableEvents(): #4451 (comment))

The log spam from this is voluminous, making it hard to see legitimate log messages. Because it is at WARN level, it is not possible to use log levels to suppress these messages without losing all other messages at WARN and below.

To Reproduce

Steps to reproduce the behavior:

Run a microservice that calls DisableAllBeamableEvents() when setting up the BeamServer.

Expected Behavior

  • Warning occurs once in the service logs.

Actual Behavior

  • Many many warnings, one for each piece of content, appear in the service logs.

Metadata

  • SDK version: Beamable Unity SDK 2.2.0 / CLI 4.x
  • Engine version: Beamable C#MS
  • Operating System: N/A

Additional Context

This case is tangentially related to #4469 because often the reason for calling DisableAllBeamableEvents() is to enable custom event subscribers such as a service-to-service notification subscription.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions