summaryrefslogtreecommitdiff
path: root/apitest.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-08-04 17:39:11 +0300
committerLars Wirzenius <liw@liw.fi>2017-08-04 17:39:11 +0300
commite291a7a172300e5d4ccdaabde3b52af14034590c (patch)
tree31b41351a5212d16eef25f5db478be2fa4899387 /apitest.py
parentda82fc487b2a6d7975ea845e07bdf6b593dc1db4 (diff)
downloadapifw-e291a7a172300e5d4ccdaabde3b52af14034590c.tar.gz
Add: update NEWS
Diffstat (limited to 'apitest.py')
-rw-r--r--apitest.py6
1 files changed, 5 insertions, 1 deletions
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