Skip to content

logger: unexpected error log when using TRACE level #3872

@peczenyj

Description

@peczenyj

when I am using the logger with TRACE mode to inspect what I am doing based on this documentation

that give the following options

Options: OFF , FATAL , ERROR , WARN , INFO , DEBUG , TRACE , ALL , NONE

if I set TRACE (instead DEBUG) I can see the following error log

time="2025-12-23T08:51:16Z" level=error msg="Log level 'TRACE' not recognized, using to default level INFO" @service=benthos

despite this message, the TRACE level works fine

I find the root cause: this line

BTW it is possible add support to TRACE levels using a dedicated code wrapper but it means changing all places where we create a new slog ( inside repo github.com/redpanda-data/benthos/v4 too )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions