Skip to content

Audit logging level pass-through #9105

Open
Open

Description

@taylorsilva

Summary

When locally testing Concourse I always have the log level set to debug:

CONCOURSE_LOG_LEVEL: debug

I noticed that none of the debug statements in the Lidar scanner actually show up: https://github.com/concourse/concourse/blob/master/atc/lidar/scanner.go

I think this happens because we create a logger from the passed in context, but the passed in context has no configure logger, so we end up with a default logger whose log level is not debug.

I think I've seen this pattern in a few other places, this is just the most recent one that comes to mind.

We should verify that we're correctly passing a configured logger down to all components, either with a context or directly passing a logger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions