-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
pelican --quiet produces non critical output #3201
Comments
Would you mind testing this on the current master branch and reporting here whether you get the same result?
|
The
As far as I can tell, the only place where the console is directly written to is in I'm not clear on what's being asked for here, or the use case.
|
"console.print()) is entirely unaffected by the verbosity flags." I would agree with that. However, a summary of the activity of the tool is really INFO level log output not console output. If the summary text were the actual output of the tool then I would agree that In my case I'm layering automations on top of this and I only really care to see output if it is an error. So I'm tempted to write If it isn't practical to move the summary message to INFO logging, then i would suggest squashing the console.print in just the Updating the help message as you suggest makes the feature not useful, additionally it isn't correct as you point out, if a plugin or the |
So I (incorrectly) assumed that the logging output was going to I'd like to change the default logging StreamHandler to output to Automation could then check the Alternatively something you can try under the current implementation is running pelican with |
I also initially assumed the logging would go to Maybe the cleanest solution is switching from |
There's actually already two separate console objects, so there's no need to split anything further than it already is. The only change needed would be to specify the logger's console handler to output to
What's desirable here is the ability to differentiate between logging output and user-friendly terminal (console) outputs. This is a pretty trivial change to implement: we don't need to introduce new custom log levels; it'd literally be a one line change in log initialization. I'm happy to implement this change myself, but as I'm already making some big changes to logging setup (#3038), I'd like to get those changes merged first so I don't keep having to deal with merge conflicts ':) |
Where? Currently, there is only single
If you split them, I'd suggest testing to see how this behaves. I suspect it will not like it... |
In the
--help
it saysHowever, when I run pelican with
--quiet
I get non critical output.Here is my version...
The text was updated successfully, but these errors were encountered: