Skip to content

Commit

Permalink
[FLINK-1397] Fix logfile access from JobManager web interface
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzger committed Jan 14, 2015
1 parent cfa04aa commit be03598
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se
try {
if("stdout".equals(req.getParameter("get"))) {
// Find current stdout file
sendFile(".*-jobmanager-[^\\.]*\\.out", resp);
sendFile(".*jobmanager-[^\\.]*\\.out", resp);
}
else {
// Find current logfile
sendFile(".*-jobmanager-[^\\.]*\\.log", resp);
sendFile(".*jobmanager-[^\\.]*\\.log", resp);
}
} catch (Throwable t) {
resp.setStatus(HttpServletResponse.SC_BAD_REQUEST);
Expand Down

0 comments on commit be03598

Please sign in to comment.