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

Error logs are going into stdout #1783

Closed
tugrulates opened this issue Feb 28, 2022 · 0 comments
Closed

Error logs are going into stdout #1783

tugrulates opened this issue Feb 28, 2022 · 0 comments
Labels
done in pr Already done in a PR

Comments

@tugrulates
Copy link

tugrulates commented Feb 28, 2022

Bug Report

I am using zola as part of a larger pipeline. Its stdout cannot be kept quiet while allowing error messages.

Environment

  • Zola version: 0.15.3
  • Reproduces at the head of both master and next.
  • I'm using WSL2.

Expected Behavior

Error logs are sent to stderr, so they can be filtered.

Current Behavior

Both normal and error logs are sent to stdout.

Step to reproduce

Force an error with an empty config.

$ echo > config.toml
$ zola build 1> /dev/null
$ zola build 2> /dev/null
Building site...
Failed to build the site
Error: A base URL is required in config.toml with key `base_url`

I can also reproduce with a Tera syntax error.

Keats added a commit that referenced this issue Mar 31, 2022
Also fixes #1783
@Keats Keats added done in pr Already done in a PR and removed enhancement labels Mar 31, 2022
Keats added a commit that referenced this issue Mar 31, 2022
Also fixes #1783
@Keats Keats closed this as completed in c11ae6e Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done in pr Already done in a PR
Projects
None yet
Development

No branches or pull requests

2 participants