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

Print errors to stderr #436

Merged
merged 2 commits into from
Jan 2, 2020
Merged

Print errors to stderr #436

merged 2 commits into from
Jan 2, 2020

Conversation

jromero
Copy link
Member

@jromero jromero commented Dec 28, 2019

Resolves #432

Signed-off-by: Javier Romero <root@jromero.codes>
Signed-off-by: Javier Romero <root@jromero.codes>
type WithInfoErrorWriter interface {
InfoErrorWriter() io.Writer
// WithSelectableWriter is an optional interface for loggers that want to support a separate writer per log level.
type WithSelectableWriter interface {
Copy link
Member Author

Choose a reason for hiding this comment

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

Condensed two interfaces into one to increase robustness and in my opinion provide additional clarity. e.g. GetInfoErrorWriter was confusing.

@jromero jromero merged commit 779acc7 into master Jan 2, 2020
@jromero jromero deleted the fix/432-stderr branch January 2, 2020 17:52
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.

Pack does not print errors to STDERR
2 participants