mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 12:07:51 +02:00
Every time you run nomulus tool you currently get a bunch of useless output to the console that looks like this: --- Feb 08, 2018 3:11:18 PM google.registry.config.YamlUtils mergeYaml INFO: Successfully loaded environment configuration YAML file. Feb 08, 2018 3:11:20 PM com.google.wrappers.base.GoogleInit logArgs INFO: First call to GoogleInit.initialize - removeFlags: false, args: [ProcessUtils, --noinstall_signal_handlers] Feb 08, 2018 3:11:20 PM com.google.wrappers.base.GoogleInit logArgs INFO: Subsequent call to GoogleInit.initialize, ignoring - removeFlags: false, args: [SecureWrapperBindings (via google.registry.tools.RegistryTool), --noinstall_signal_handlers] Feb 08, 2018 3:11:25 PM com.google.monitoring.metrics.MetricRegistryImpl newIncrementableMetric INFO: Registered new counter: /lock/acquire_lock_requests Feb 08, 2018 3:11:25 PM com.google.monitoring.metrics.MetricRegistryImpl newEventMetric INFO: Registered new event metric: /lock/lock_duration --- This CL fixes that by increasing the console logging threshold from INFO to WARNING for the relevant paths, for nomulus tool only. I also had to decrease the logging level of one statement inside YamlUtils from INFO to FINE, because it was being called by AppEngineConnectionFlags' constructor in building the HostAndPort server field, which is executed from the first line of RegistryCli.runCommand(), whereas loggingParams.configureLogging(), which actually reads in and takes action on the logging.properties file, isn't called until much later. This is fine though, because there's little value from logging the statement "Successfully loaded environment configuration YAML file." every time every command or flow is executed. We certainly do log errors if that ever fails, which is the important part. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=185036329 |
||
---|---|---|
.. | ||
files | ||
BUILD | ||
ConfigUtils.java | ||
package-info.java | ||
RdapNoticeDescriptor.java | ||
RegistryConfig.java | ||
RegistryConfigSettings.java | ||
RegistryEnvironment.java | ||
YamlUtils.java |