Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store, query, frontend: add log.format flag #173

Merged
merged 1 commit into from
Nov 25, 2020

Conversation

craigfurman
Copy link
Contributor

@craigfurman craigfurman commented Nov 20, 2020

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

store, query, frontend: add log.format flag

Default to "logfmt", the same as the upstream default.

Also fix bug in which logLevel was not passed to query frontend.

Verification

I've tested this in a dev environment (k3d).

@craigfurman
Copy link
Contributor Author

craigfurman commented Nov 20, 2020

Looks like I need to fix some tests, add a DCO, and add a changelog now that the PR ID is known.

Update: done.

Default to "logfmt", the same as the upstream default.

Also fix bug in which logLevel was not passed to query frontend.

Signed-off-by: Craig Furman <craig.furman89@gmail.com>
@SuperQ
Copy link

SuperQ commented Nov 23, 2020

FYI, this is so we can change to json logs.

@SuperQ
Copy link

SuperQ commented Nov 24, 2020

Ping @metalmatze 😄

@metalmatze
Copy link
Contributor

Makes a lot of sense! Thanks!
I guess you only need these components for now? Might be nice to add it to the other ones for consistency, if they have that flag.

@metalmatze metalmatze merged commit bc95ea6 into thanos-io:master Nov 25, 2020
@craigfurman craigfurman deleted the log-format branch November 25, 2020 14:52
@craigfurman
Copy link
Contributor Author

Thanks @metalmatze! We are currently only using those components, but will be using them all soon. I've opened #178 adding it everywhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants