Hi, I don't think the trick with dev/prod modes in .cfg files will work because the server gets started differently in tests.
The .cfg files are read by your webapp-start.py script. In the unit tests, the server gets started in turbogears/tests/__init__.py, and no configuration file is processed there. This code gets triggered by the following import import turbogears.tests[.whatever] So we either need to extend this code (tests/__init__.py) to look for something like tests.cfg, or to manually configure logging in our unit tests. I am fine with manually configuring logging in our unit tests. There are easy ways to make sure you only do it once.

