Skip to content

[LOW] Development mode logger hardcoded in production #194

Description

@pradeepto

Description

cmd/main.go:88-89

opts := zap.Options{
    Development: true,  // hardcoded
}

In development mode zap uses a more verbose encoder, enables DPanic-level panics, and uses a non-JSON format that is harder for log aggregators to parse.

Fix

Default to Development: false for production. Make it configurable via a flag or environment variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions