Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Commit

Permalink
Clean up servlet code and add in log settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay Kannan committed Jan 7, 2016
1 parent ae229b6 commit 59e0d0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@ public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOExc
if (pathInfo.length != 2) {
printHelpMessage(responseWriter);
} else {
Map params = req.getParameterMap();
projectId =
params.get("project-id") != null ? ((String[]) params.get("project-id"))[0] : null;
Boolean useCredentialsFile =
params.get("credentials-file") != null
? Boolean.parseBoolean(((String[]) params.get("credentials-file"))[0]) : null;
if (useCredentialsFile != null) {
projectId = req.getParameter("project-id");
if (Boolean.parseBoolean(req.getParameter("credentials-file"))) {
ServletContext context = getServletContext();
InputStream in =
context.getResourceAsStream("/WEB-INF/lib/my-service-account-credentials.json");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.level = INFO

0 comments on commit 59e0d0a

Please sign in to comment.