mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-17 06:02:32 +08:00
refactor: replace concatenation log with parameterized
This commit is contained in:
@@ -38,13 +38,11 @@ public final class HttpJsonResponse implements Handler {
|
||||
&& Arrays.stream(missingRoutes)
|
||||
.anyMatch(x -> Objects.equals(x, ctx.endpointHandlerPath()))) {
|
||||
Grasscutter.getLogger()
|
||||
.info(
|
||||
translate(
|
||||
"messages.dispatch.request",
|
||||
Utils.address(ctx),
|
||||
ctx.method(),
|
||||
ctx.endpointHandlerPath())
|
||||
+ (DISPATCH_INFO.logRequests == ServerDebugMode.MISSING ? "(MISSING)" : ""));
|
||||
.info("{}{}", translate(
|
||||
"messages.dispatch.request",
|
||||
Utils.address(ctx),
|
||||
ctx.method(),
|
||||
ctx.endpointHandlerPath()), DISPATCH_INFO.logRequests == ServerDebugMode.MISSING ? "(MISSING)" : "");
|
||||
}
|
||||
ctx.result(response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user