Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Entrypoint default log level #1164

Closed
krzaczek opened this issue Mar 5, 2021 · 0 comments · Fixed by #1330
Closed

Entrypoint default log level #1164

krzaczek opened this issue Mar 5, 2021 · 0 comments · Fixed by #1330
Assignees
Labels
core enhancement New feature or request
Milestone

Comments

@krzaczek
Copy link

krzaczek commented Mar 5, 2021

Is your feature request related to a problem? Please describe.
Current waypoint-entrypoint log level (TRACE) produces insane amount of logs on our production envirioment. The entrypoint logs two lines every 15 seconds.

2021-03-05 18:08:12.380 CET2021-03-05T17:08:12.380Z [TRACE] entrypoint.config.watcher: app configuration unchanged
2021-03-05 18:08:27.381 CET2021-03-05T17:08:27.381Z [TRACE] entrypoint.config.watcher: refreshing app configuration
2021-03-05 18:08:27.381 CET2021-03-05T17:08:27.381Z [TRACE] entrypoint.config.watcher: app configuration unchanged
2021-03-05 18:08:42.382 CET2021-03-05T17:08:42.382Z [TRACE] entrypoint.config.watcher: refreshing app configuration
2021-03-05 18:08:42.382 CET2021-03-05T17:08:42.382Z [TRACE] entrypoint.config.watcher: app configuration unchanged
2021-03-05 18:08:57.383 CET2021-03-05T17:08:57.383Z [TRACE] entrypoint.config.watcher: refreshing app configuration
2021-03-05 18:08:57.383 CET2021-03-05T17:08:57.383Z [TRACE] entrypoint.config.watcher: app configuration unchanged
2021-03-05 18:09:12.383 CET2021-03-05T17:09:12.383Z [TRACE] entrypoint.config.watcher: refreshing app configuration
2021-03-05 18:09:12.383 CET2021-03-05T17:09:12.383Z [TRACE] entrypoint.config.watcher: app configuration unchanged

Describe the solution you'd like
Lower the default log level to (INFO) or allow to overide the default log level by an ENV

https://github.com/hashicorp/waypoint/blob/main/cmd/waypoint-entrypoint/main.go#L30

@krzaczek krzaczek changed the title Entrypopint default log level Entrypoint default log level Mar 5, 2021
@briancain briancain added core enhancement New feature or request labels Mar 5, 2021
@krantzinator krantzinator added this to the 0.3.x milestone Mar 26, 2021
@mitchellh mitchellh self-assigned this Apr 13, 2021
mitchellh added a commit that referenced this issue Apr 13, 2021
Fixes #1164

This changes the default log level to DEBUG, which is considerably more
quiet than TRACE but still provides ample debugging help for now while
the project is early.

The WAYPOINT_LOG_LEVEL environment variable can be set (even with
`waypoint config set`) to change this behavior at anytime.
mitchellh added a commit that referenced this issue Apr 13, 2021
Fixes #1164

This changes the default log level to DEBUG, which is considerably more
quiet than TRACE but still provides ample debugging help for now while
the project is early.

The WAYPOINT_LOG_LEVEL environment variable can be set (even with
`waypoint config set`) to change this behavior at anytime.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants