Log source IP when logging is enabled

We will only enable logging for non-production environment, so there shouldn't be any privacy concerns by enabling this.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=198744739
This commit is contained in:
jianglai 2018-05-31 10:48:33 -07:00 committed by Ben McIlwain
parent af8b050446
commit 3960207502
2 changed files with 18 additions and 10 deletions

View file

@ -203,7 +203,7 @@ public class ProxyServer implements Runnable {
public static void main(String[] args) throws Exception {
// Use JDK logger for Netty's LoggingHandler,
// which is what google.registry.util.FormattingLog uses under the hood.
// which is what Flogger uses under the hood.
InternalLoggerFactory.setDefaultFactory(JdkLoggerFactory.INSTANCE);
// Configure the components, this needs to run first so that the logging format is properly