From b04edd2406d129e636e0530b722b6c1efe41be9b Mon Sep 17 00:00:00 2001 From: mohansriharsha Date: Fri, 10 Aug 2018 15:26:13 +0200 Subject: [PATCH] added num_req in logs --- .travis.yml | 4 ++-- kwikapi/api.py | 3 ++- setup.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7240fe7..c248d17 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,8 +16,8 @@ deploy: - LICENSE - kwikapi/api.py - kwikapi/__init__.py - name: kwikapi-0.4.2 - tag_name: 0.4.2 + name: kwikapi-0.4.3 + tag_name: 0.4.3 on: repo: deep-compute/kwikapi - provider: pypi diff --git a/kwikapi/api.py b/kwikapi/api.py index d9a2d6b..6e6ee74 100644 --- a/kwikapi/api.py +++ b/kwikapi/api.py @@ -483,7 +483,8 @@ def handle_request(self, request): method=rinfo.method, compute_time=tcompute, serialize_time=t.value, deserialize_time=rinfo.time_deserialize, __params=get_loggable_params(request.fn_params or {}), - protocol=request.protocol, type='logged_metric', **request.metrics) + protocol=request.protocol, type='logged_metric', num_req=1, + **request.metrics) except Exception as e: message = e.message if hasattr(e, 'message') else str(e) diff --git a/setup.py b/setup.py index a28bb4b..18ceaf5 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -version = '0.4.2' +version = '0.4.3' setup( name="kwikapi", version=version,