Skip to content

Logger is not displaying wrapped errors correctly #761

@mtardy

Description

@mtardy

When using %w to wrap errors like this:

logger.GetLogger().Warnf("kprobe syscall prefix: %w", err)

Logs look like this:

time="2023-03-03T16:01:04Z" level=warning msg="kprobe syscall prefix: %!w(*errors.errorString=&{expecting __arm64 and got __x64})

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/userspaceRelated to userspace Tetragon logic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions