Skip to content

Commit

Permalink
Log GET requests on /clients #65
Browse files Browse the repository at this point in the history
Implement basic logging of a GET request on /clients, including having
the log entry show the number of clients returned in the response.
  • Loading branch information
kfogel committed Jul 15, 2016
1 parent 650fce4 commit 72ce8af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/openhmis/webservice/ClientService.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public List<ClientDTO> getClients(@HeaderParam("Authorization") String authoriza

// Return clients that match the search terms
List<ClientDTO> clientDTOs = clientManager.getClients(searchDTO);
/* TBD (issue #65): We need to determine a standard logging
format, some conventions, and maybe a helper class to
enforce it all; would also be nice to log which user made
the request. But for now, just show that logging works. */
log.debug("GET /clients/ (" + clientDTOs.size() + " results)");
return clientDTOs;
}

Expand Down

0 comments on commit 72ce8af

Please sign in to comment.