From e291a7a172300e5d4ccdaabde3b52af14034590c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 4 Aug 2017 17:39:11 +0300 Subject: Add: update NEWS --- apitest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apitest.py') diff --git a/apitest.py b/apitest.py index b3987d8..8710476 100644 --- a/apitest.py +++ b/apitest.py @@ -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 -- cgit v1.2.1