From: tierno Date: Tue, 31 Jan 2017 11:43:46 +0000 (+0100) Subject: added some missing logs at http requests X-Git-Tag: v1.1.0~5 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=664691ad5490fdb2a53ab366211f143ae533c6e8;p=osm%2FRO.git added some missing logs at http requests Change-Id: Iab69bfe9c6ce80e5f5b91f3f3fc4ae9fdfcf9ca4 Signed-off-by: tierno --- diff --git a/httpserver.py b/httpserver.py index 8cd482f9..65d7ede1 100644 --- a/httpserver.py +++ b/httpserver.py @@ -1086,10 +1086,11 @@ def http_get_scenario_id(tenant_id, scenario_id): @bottle.route(url_base + '//scenarios/', method='DELETE') def http_delete_scenario_id(tenant_id, scenario_id): '''delete a scenario from database, can use both uuid or name''' + logger.debug('FROM %s %s %s', bottle.request.remote_addr, bottle.request.method, bottle.request.url) try: #check valid tenant_id if tenant_id != "any": - nfvo.check_tenant(mydb, tenant_id) + nfvo.check_tenant(mydb, tenant_id) #obtain data data = mydb.delete_scenario(scenario_id, tenant_id) #print json.dumps(data, indent=4)