In this post, I will explain you how to use Celery and print warning messages to stdout.
|Cross section of celery stalk, showing vascular bundles, which include both phloem and xylem. (Photo credit: Wikipedia)|
If you use celery, you might be frustrated by the absence of the ‘print’ assertions that you put in your code for debugging. There is a very simple way to solve this point and see all print. As an added benefit, it will permit you to display nice warning in a python way :).
The solution is very simple! Just import the warning package in the module that you call with celery: