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

Write results to stdout #42

Open
rgamez opened this issue Mar 5, 2013 · 1 comment
Open

Write results to stdout #42

rgamez opened this issue Mar 5, 2013 · 1 comment
Labels

Comments

@rgamez
Copy link
Collaborator

rgamez commented Mar 5, 2013

Writing with the logger to stderr by default prevent of using unix tools like grep for filtering, for example $ catho/catho.py find \* media | grep Animal just print 133652 records from the test catalog.

There is a workaround, redirecting stderr to stdout, but it is not really straight forward.
$ catho/catho.py find \* media 2>&1 >/dev/null | grep Animal

@iemejia
Copy link
Owner

iemejia commented Mar 6, 2013

Any other ide apart of the 'ugly' workaround ? maybe we should log with info no ? does warning works ? since we can let logging with error for real problematic issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants