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

Rework log levels to be more useful #546

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

shssoichiro
Copy link
Collaborator

  • Update log levels so that the log file contains more verbose
    information by default, while leaving the stderr progress indicator
    relatively uncluttered
  • Explicitly set the log level to error for all dependencies
  • rav1e scenechange info has been moved to --log-level trace
  • Avoid outputting colors if stderr is not a tty
  • Fix a crash when using --quiet

@redzic
Copy link
Collaborator

redzic commented Jan 17, 2022

It seems that there is still some colored info printed while not running in a tty, namely the params, warn for rate control for aomenc, just the message for "Scene detection", and the queue, workers, passes message. Perhaps we should fix that too?

- Update log levels so that the log file contains more verbose
  information by default, while leaving the stderr progress indicator
  relatively uncluttered
- Explicitly set the log level to `error` for all dependencies
- rav1e scenechange info has been moved to `--log-level trace`
- Avoid outputting colors if stderr is not a tty
- Fix a crash when using `--quiet`
@shssoichiro
Copy link
Collaborator Author

@redzic Ping. I pushed up the changes you requested.

Copy link
Collaborator

@redzic redzic left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@mergify mergify bot merged commit 351d19a into master-of-zen:master Jan 18, 2022
mergify bot pushed a commit that referenced this pull request Jan 18, 2022
- Update log levels so that the log file contains more verbose
  information by default, while leaving the stderr progress indicator
  relatively uncluttered
- Explicitly set the log level to `error` for all dependencies
- rav1e scenechange info has been moved to `--log-level trace`
- Avoid outputting colors if stderr is not a tty
- Fix a crash when using `--quiet`

(cherry picked from commit 351d19a)
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.

2 participants