Skip to content

DNS logging should be opt-in #1367

@jandubois

Description

@jandubois

Right now the host agent always logs at the DEBUG level, and at that level the hostresolver writes every single lookup to the log files.

This is problematic for some users who are not allowed to share internal server names, so they can't share log files.

It seems like HA logging is intentionally locked at the DEBUG level instead of inheriting the --debug setting from the limactl start command, so not sure what the right solution would be?

Should we move DNS logging to TRACE level, and switch from DEBUG to TRACE level logging when the instance was started by limactl --debug start ...?

Or just move it to TRACE level, and let the developer create a debugging binary where the hostagent logs at TRACE level, if we ever need to debug the hostresolver again? Maybe that will never happen anyways if we switch to gvisor for the user level networking.

Thoughts?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions