Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
sentry.tasks.cleanup should use logging instead of print #640
In distributed environments, adding sentry cleanup to cron is not a good enough choice anymore.
That's why it was better for us to run it inside celery task. All is peachy, but this task is printing a lot of crap to stdout while it should use logging instead. Like:
WARNING 2012-10-31 17:49:09,962 celery.redirected[log.py:238]: checking filters
Preferably allow logger parameter to it.
And in code, use print_info instead of print.