diff options
Diffstat (limited to 'apitest.py')
-rw-r--r-- | apitest.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -99,6 +99,10 @@ def dict_logger(log, stack_info=None): logging.info('Traceback', exc_info=True) +def counter(): + pass + + logfile = os.environ.get('APITEST_LOG') if logfile: logging.basicConfig(filename=logfile, level=logging.DEBUG) @@ -134,7 +138,7 @@ config = { # hopefully don't need to care, how the magic works. api = Api() -app = apifw.create_bottle_application(api, dict_logger, config) +app = apifw.create_bottle_application(api, counter, dict_logger, config) # If we are running this program directly with Python, and not via # gunicorn, we can use the Bottle built-in debug server, which can |