Comments (4)
All messages (or all severities) are going to stderr. That's
deliberately so.
Why would you want (or expect) INFO messages at stdout?
from crmsh.
Not all messages are error messages, some are informational. By pushing them all to stderr it becomes harder to differentiate error and non-error output. It also makes it harder to filter output since you can't redirect non-error output to somewhere else (/dev/null for example).
Is there a technical reason to put them all in stderr or is it just a matter of preference?
from crmsh.
There's no purely technical reason. I'd just expect all
messages to be sent to stderr, regardless of the severity. I'm
not aware of any convention about sending messages depending on
severity to stdout. I believe that all unix programs, at least
those I had a chance to work with, send messages to stderr, so
that they don't interfere with possible further processing in
pipes.
Otherwise, you should test for exit codes if you want to check
whether there was an error. The exit code is the ultimate result,
messages shouldn't be relied on for that.
Must say that I'm a bit confused. Could you give me an example
where this would affect your processes.
from crmsh.
Understood, thank you for your explanation. We will adjust our usage accordingly and rely on error codes only as we should.
from crmsh.
Related Issues (20)
- resource receiving stop signal at different times HOT 1
- Is "cibadmin_opt" a typo of "cibadm_opt" at line 414 in crmsh/log.py? HOT 1
- crmsh parser fails to parse cli arguments with op monitor role given HOT 13
- bundle: crmsh should support podman type
- 'sudo crm cluster copy <relative_path>' output could be more informative HOT 1
- Bundle: Drop rkt container type in master branch for the coming pacemaker 3 HOT 1
- Incompatible with Python 3.12 HOT 1
- RFE: Add corosync cpg status HOT 1
- RFE: Consider DLM (dlm_tool) in crmsh HOT 1
- crm cluster init example on the start-guide page HOT 1
- Some contents in crmsh.github.io are outdated
- crm report should collect qdevice/qnetd status
- `crm configure help XXX` is broken if the cluster is not running HOT 1
- Give a warning when detecting $SSH_AUTH_SOCK but not using `--use-ssh-agent` option HOT 1
- Failed to start cluster service when calling `run-functional-tests -n 2` HOT 7
- Automate updating the documents on crmsh.github.io
- `crm configure property` bash completion and the help text for each property HOT 2
- Invalid `check_quick` methond in class PasswordlessHaclusterAuthenticationFeature
- data-manifest can be generated on the fly in build process
- Generated doc crm.8.aio.adoc has some anchor missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crmsh.