mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 01:17:14 +02:00
Migrate to internal FormattingLogger in preparation of migration to Flogger
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=197744904
This commit is contained in:
parent
86dd6bd59e
commit
fc60890136
188 changed files with 217 additions and 301 deletions
|
@ -8,6 +8,7 @@ java_library(
|
|||
name = "backend",
|
||||
srcs = glob(["*.java"]),
|
||||
deps = [
|
||||
"//java/com/google/common/logging:formatting_logger",
|
||||
"//java/google/registry/backup",
|
||||
"//java/google/registry/batch",
|
||||
"//java/google/registry/bigquery",
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
package google.registry.module.backend;
|
||||
|
||||
import com.google.appengine.api.LifecycleManager;
|
||||
import com.google.common.logging.FormattingLogger;
|
||||
import com.google.monitoring.metrics.MetricReporter;
|
||||
import dagger.Lazy;
|
||||
import google.registry.util.FormattingLogger;
|
||||
import java.io.IOException;
|
||||
import java.security.Security;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
|
|
@ -8,6 +8,7 @@ java_library(
|
|||
name = "frontend",
|
||||
srcs = glob(["*.java"]),
|
||||
deps = [
|
||||
"//java/com/google/common/logging:formatting_logger",
|
||||
"//java/google/registry/braintree",
|
||||
"//java/google/registry/config",
|
||||
"//java/google/registry/dns",
|
||||
|
@ -26,6 +27,8 @@ java_library(
|
|||
"@com_google_appengine_api_1_0_sdk",
|
||||
"@com_google_code_findbugs_jsr305",
|
||||
"@com_google_dagger",
|
||||
"@com_google_flogger",
|
||||
"@com_google_flogger_system_backend",
|
||||
"@com_google_guava",
|
||||
"@com_google_monitoring_client_metrics",
|
||||
"@javax_servlet_api",
|
||||
|
|
|
@ -15,9 +15,10 @@
|
|||
package google.registry.module.frontend;
|
||||
|
||||
import com.google.appengine.api.LifecycleManager;
|
||||
import com.google.common.flogger.FluentLogger;
|
||||
import com.google.common.logging.FormattingLogger;
|
||||
import com.google.monitoring.metrics.MetricReporter;
|
||||
import dagger.Lazy;
|
||||
import google.registry.util.FormattingLogger;
|
||||
import java.io.IOException;
|
||||
import java.security.Security;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
@ -34,6 +35,8 @@ public final class FrontendServlet extends HttpServlet {
|
|||
private static final FrontendRequestHandler requestHandler = component.requestHandler();
|
||||
private static final Lazy<MetricReporter> metricReporter = component.metricReporter();
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
// TODO(b/): Remove this static field.
|
||||
private static final FluentLogger flogger = FluentLogger.forEnclosingClass();
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
|
@ -62,7 +65,7 @@ public final class FrontendServlet extends HttpServlet {
|
|||
|
||||
@Override
|
||||
public void service(HttpServletRequest req, HttpServletResponse rsp) throws IOException {
|
||||
logger.info("Received frontend request");
|
||||
flogger.atInfo().log("Received frontend request");
|
||||
requestHandler.handleRequest(req, rsp);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ java_library(
|
|||
name = "pubapi",
|
||||
srcs = glob(["*.java"]),
|
||||
deps = [
|
||||
"//java/com/google/common/logging:formatting_logger",
|
||||
"//java/google/registry/config",
|
||||
"//java/google/registry/dns",
|
||||
"//java/google/registry/flows",
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
package google.registry.module.pubapi;
|
||||
|
||||
import com.google.appengine.api.LifecycleManager;
|
||||
import com.google.common.logging.FormattingLogger;
|
||||
import com.google.monitoring.metrics.MetricReporter;
|
||||
import dagger.Lazy;
|
||||
import google.registry.util.FormattingLogger;
|
||||
import java.io.IOException;
|
||||
import java.security.Security;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
|
|
@ -8,6 +8,7 @@ java_library(
|
|||
name = "tools",
|
||||
srcs = glob(["*.java"]),
|
||||
deps = [
|
||||
"//java/com/google/common/logging:formatting_logger",
|
||||
"//java/google/registry/backup",
|
||||
"//java/google/registry/config",
|
||||
"//java/google/registry/dns",
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
package google.registry.module.tools;
|
||||
|
||||
import google.registry.util.FormattingLogger;
|
||||
import com.google.common.logging.FormattingLogger;
|
||||
import java.io.IOException;
|
||||
import java.security.Security;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue