Instead of print values, use the logging module. This is usually a good practice, as it means that you can leave it in a convenient debugging release, even when you are working.
import logging logging.error("This is an error message that will show in the console")
By default, dev_appserver.py will not display messages below the INFO logging level, but you can run dev_appserver.py with the --debug flag, and then you can see the output from the lower level logging.DEBUG and scatter various entries in your code, for example:
logging.debug("some helpful debug info")
If you leave them as soon as your application is operational, they will be visible in your application’s administrative area in the logs section.
source share