Skip to content

Commit

Permalink
Issue # SB-1471 Developement : Telemetry Test cases .
Browse files Browse the repository at this point in the history
  • Loading branch information
arvindyadav108 committed Jan 31, 2018
1 parent ca42b4a commit 2f64c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/app/controllers/BaseController.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public Result createCommonResponse(Object response, String key, Request request)
Map<String, Object> params = (Map<String, Object>) requestInfo.get(JsonKey.ADDITIONAL_INFO);

params.put(JsonKey.LOG_TYPE, JsonKey.API_ACCESS);
params.put(JsonKey.MESSAGE , request.uri());
params.put(JsonKey.MESSAGE , "");
params.put(JsonKey.METHOD, request.method());

//if (response instanceof Response) {
Expand Down Expand Up @@ -289,7 +289,7 @@ public Result createCommonExceptionResponse(Exception e, Request request) {
org.sunbird.common.request.Request reqForTelemetry = new org.sunbird.common.request.Request();
Map<String, Object> params = (Map<String, Object>) requestInfo.get(JsonKey.ADDITIONAL_INFO);
params.put(JsonKey.LOG_TYPE, JsonKey.API_ACCESS);
params.put(JsonKey.MESSAGE , request.uri());
params.put(JsonKey.MESSAGE , "");
params.put(JsonKey.METHOD, request.method());
long endTime = System.currentTimeMillis();
params.put(JsonKey.END_TIME, endTime);
Expand Down

0 comments on commit 2f64c86

Please sign in to comment.