diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-08-04 17:39:11 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-08-04 17:39:11 +0300 |
commit | e291a7a172300e5d4ccdaabde3b52af14034590c (patch) | |
tree | 31b41351a5212d16eef25f5db478be2fa4899387 /apitest.py | |
parent | da82fc487b2a6d7975ea845e07bdf6b593dc1db4 (diff) | |
download | apifw-e291a7a172300e5d4ccdaabde3b52af14034590c.tar.gz |
Add: update NEWS
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 |