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

Support logging via RUST_LOG #209

Merged
merged 4 commits into from
Jun 27, 2024
Merged

Support logging via RUST_LOG #209

merged 4 commits into from
Jun 27, 2024

Conversation

alexheretic
Copy link
Owner

@alexheretic alexheretic commented Jun 27, 2024

  • Support logging enabled when stderr is not a terminal or by setting env var RUST_LOG. E.g:
    • RUST_LOG=ab_av1=info "info" level logs various progress results like sample encode info
    • RUST_LOG=ab_av1=debug "debug" level logs include ffmpeg calls
  • Fix sample-encode printing output to non-terminals.
  • Omit "Encode with: ..." stderr hint for non-terminals.

Resolves #204
Relates to #58

@alexheretic alexheretic merged commit 6d66b20 into main Jun 27, 2024
2 checks passed
@alexheretic alexheretic deleted the log branch June 27, 2024 17:37
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.

Can't redirect stderr without losing stdout
1 participant