mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 14:54:51 +02:00
Migrate to Flogger (green)
This is a 'green' Flogger migration CL. Green CLs are intended to be as safe as possible and should be easy to review and submit. No changes should be necessary to the code itself prior to submission, but small changes to BUILD files may be required. Changes within files are completely independent of each other, so this CL can be safely split up for review using tools such as Rosie. For more information, see [] Base CL: 197826149 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=198560170
This commit is contained in:
parent
0d2fb3a8f0
commit
70b13596e4
178 changed files with 984 additions and 988 deletions
|
@ -28,7 +28,7 @@ import static javax.servlet.http.HttpServletResponse.SC_OK;
|
|||
|
||||
import com.google.common.base.Joiner;
|
||||
import com.google.common.base.Splitter;
|
||||
import com.google.common.logging.FormattingLogger;
|
||||
import com.google.common.flogger.FluentLogger;
|
||||
import google.registry.config.RegistryConfig.Config;
|
||||
import google.registry.request.Action;
|
||||
import google.registry.request.RequestPath;
|
||||
|
@ -100,7 +100,7 @@ public final class WhoisHttpAction implements Runnable {
|
|||
|
||||
public static final String PATH = "/whois/";
|
||||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
private static final FluentLogger logger = FluentLogger.forEnclosingClass();
|
||||
|
||||
/**
|
||||
* Cross-origin resource sharing (CORS) allowed origins policy.
|
||||
|
@ -187,7 +187,7 @@ public final class WhoisHttpAction implements Runnable {
|
|||
try {
|
||||
return URLDecoder.decode(pathData, "UTF-8");
|
||||
} catch (IllegalArgumentException e) {
|
||||
logger.infofmt("Malformed WHOIS request path: %s (%s)", requestPath, pathData);
|
||||
logger.atInfo().log("Malformed WHOIS request path: %s (%s)", requestPath, pathData);
|
||||
throw new WhoisException(clock.nowUtc(), SC_BAD_REQUEST, "Malformed path query.");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue