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

pkg/loki: unmarshal module name from YAML #1260

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Nov 13, 2019

The module name field in the config could not be unmarshalled from a string, causing parsing the config to crash.

This commit also changes the error message when the config could not be parsed to print directly to stderr, as the logger won't be initialized at the point where parsing the config fails, leading to no output in the console.

Fixes #1259.

@rfratto rfratto requested a review from sh0rez November 13, 2019 17:00
Copy link
Member

@sh0rez sh0rez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The module name field in the config could not be unmarshalled from a
string, causing parsing the config to crash.

This commit also changes the error message when the config could not be
parsed to print directly to stderr, as the logger won't be initialized
at the point where parsing the config fails, leading to no output in the
console.

Fixes grafana#1259.
@rfratto rfratto merged commit a1901e2 into grafana:master Nov 13, 2019
@rfratto rfratto deleted the unmarshal-module-name branch November 13, 2019 17:03
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.

crash when 'target' key is set in config.yaml
2 participants