[GitwebServlet] Use logger built-in formatting
Change-Id: I780ca9606f9a821dd91990a428984b06f4c64942
This commit is contained in:
parent
35c80e2e5f
commit
943341d2a1
@ -126,7 +126,7 @@ class GitwebServlet extends HttpServlet {
|
||||
try {
|
||||
uri = new URI(url);
|
||||
} catch (URISyntaxException e) {
|
||||
log.error("Invalid gitweb.url: " + url);
|
||||
log.error("Invalid gitweb.url: {}", url);
|
||||
}
|
||||
gitwebUrl = uri;
|
||||
} else {
|
||||
@ -503,7 +503,7 @@ class GitwebServlet extends HttpServlet {
|
||||
|
||||
final int status = proc.exitValue();
|
||||
if (0 != status) {
|
||||
log.error("Non-zero exit status (" + status + ") from " + gitwebCgi);
|
||||
log.error("Non-zero exit status ({}) from {}", status, gitwebCgi);
|
||||
if (!rsp.isCommitted()) {
|
||||
rsp.sendError(500);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user