diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-08-19 15:52:50 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-08-19 15:53:18 +0000 |
commit | d8ddf8e4e8d461de4842dd6392620efe332ee141 (patch) | |
tree | 5dcc7a49c4b1764fd1b2bacce275aa60283a8205 | |
parent | 1639a29140ebe866c84edea27bb69a7e980a2d0e (diff) | |
download | apifw-d8ddf8e4e8d461de4842dd6392620efe332ee141.tar.gz |
DEBUG: log
-rw-r--r-- | apifw/__init__.py | 2 | ||||
-rw-r--r-- | apifw/bottleapp.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apifw/__init__.py b/apifw/__init__.py index 34af5e0..e157a22 100644 --- a/apifw/__init__.py +++ b/apifw/__init__.py @@ -14,8 +14,6 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. -assert 0 - from .apixface import Api from .http import ( HttpTransaction, diff --git a/apifw/bottleapp.py b/apifw/bottleapp.py index 40be756..97987c6 100644 --- a/apifw/bottleapp.py +++ b/apifw/bottleapp.py @@ -22,6 +22,7 @@ import time import bottle import Crypto.PublicKey.RSA +import ick2 import jwt @@ -194,6 +195,7 @@ class BottleApplication: def _callback_with_body(self, callback): def wrapper(*args, **kwargs): content_type, body = self._get_request_body() + ick2.log.log('xxx', msg_text='got request body', content_type=content_type, body=repr(body)) response = callback(content_type, body, *args, **kwargs) return bottle.HTTPResponse( status=response['status'], body=response['body'], |