diff --git a/services/paddle_services/utils.py b/services/paddle_services/utils.py index 4af6beb..2416e80 100644 --- a/services/paddle_services/utils.py +++ b/services/paddle_services/utils.py @@ -2,7 +2,7 @@ import logging import os from functools import wraps -from flask import jsonify +from flask import jsonify, request def process_request(func): @@ -12,8 +12,10 @@ def process_request(func): @wraps(func) def wrapper(*args, **kwargs): + logging.info(f'request {func.__name__} with args: {request.form}') try: result = func(*args, **kwargs) + logging.info(f'response {func.__name__} with result: {result}') return jsonify(result), 200 except Exception as e: logging.getLogger('error').error(e, exc_info=e)