mirror of
https://github.com/google/nomulus
synced 2026-01-11 08:20:27 +00:00
Migrating to fluent logging (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: 197331037 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=197466715
This commit is contained in:
@@ -17,7 +17,6 @@ package google.registry.proxy;
|
||||
import static google.registry.util.ResourceUtils.readResourceBytes;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.logging.FormattingLogger;
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
import dagger.multibindings.IntoSet;
|
||||
@@ -52,8 +51,6 @@ import javax.inject.Singleton;
|
||||
@Module
|
||||
public class EppProtocolModule {
|
||||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
|
||||
/** Dagger qualifier to provide epp protocol related handlers and other bindings. */
|
||||
@Qualifier
|
||||
public @interface EppProtocol {}
|
||||
@@ -136,8 +133,7 @@ public class EppProtocolModule {
|
||||
try {
|
||||
return readResourceBytes(EppProtocolModule.class, "resources/hello.xml").read();
|
||||
} catch (IOException e) {
|
||||
logger.severe(e, "Cannot read EPP <hello> message file.");
|
||||
throw new RuntimeException(e);
|
||||
throw new RuntimeException("Cannot read EPP <hello> message file.", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user