Skip to content

-setDebugLevel NET does not enable network diagnostics #3094

Description

@bobtista

Prerequisites

  • I have searched for similar issues and confirmed this is not a duplicate

Game Version

  • Command & Conquer Generals
  • Command & Conquer Generals: Zero Hour

Bug Description

Network diagnostics guarded by DEBUG_LEVEL_NET are never emitted, including when NET is explicitly selected with -setDebugLevel.

This makes the existing network logging unavailable when investigating connection stalls, retransmissions, frame synchronization, or packet handling.

Reproduction Steps

  1. Build and run a debug build.
  2. Start the game with -setDebugLevel NET.
  3. Enter a network game and generate network activity.
  4. Inspect the debug log.
  5. Observe that diagnostics guarded by DEBUG_LOG_LEVEL(DEBUG_LEVEL_NET, ...) are not written.

Additional Context

DEBUG_LEVEL_NET is zero, while DEBUG_LOG_LEVEL tests the level directly against DebugLevelMask.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working right, typically is user facingDebugIs mostly debug functionalityGenRelates to GeneralsNetworkAnything related to network, serversZHRelates to Zero Hour⚠️ TriageIssues requiring initial review and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions