You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
E.g.
def cleanup(days=30, logger=None, site=None, server=None, level=None,
project=None, resolved=None, logger=None, **kwargs):
print_info = logger.info if logger else sys.stdout.write
And in code, use print_info instead of print.
The text was updated successfully, but these errors were encountered: