mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Fix legacy logging bug from FlowRunner
We've moved completely to the JSON based reporting framework. The legacy logging statement is only for human consumption, therefore removing the comments. Also fixes a bug where the last argument is not used due to the formatter only expecting 7 arguments. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=198558998
This commit is contained in:
parent
1f1705aaa6
commit
0d2fb3a8f0
2 changed files with 19 additions and 16 deletions
|
@ -35,10 +35,7 @@ import javax.inject.Provider;
|
|||
/** Run a flow, either transactionally or not, with logging and retrying as needed. */
|
||||
public class FlowRunner {
|
||||
|
||||
/** Log format used by legacy ICANN reporting parsing - DO NOT CHANGE. */
|
||||
// TODO(b/20725722): remove this log format entirely once we've transitioned to using the
|
||||
// JSON log line below instead, or change this one to be for human consumption only.
|
||||
private static final String COMMAND_LOG_FORMAT = "EPP Command" + Strings.repeat("\n\t%s", 7);
|
||||
private static final String COMMAND_LOG_FORMAT = "EPP Command" + Strings.repeat("\n\t%s", 8);
|
||||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
|
||||
|
@ -59,10 +56,7 @@ public class FlowRunner {
|
|||
/** Runs the EPP flow, and records metrics on the given builder. */
|
||||
public EppOutput run(final EppMetric.Builder eppMetricBuilder) throws EppException {
|
||||
String prettyXml = prettyPrint(inputXmlBytes);
|
||||
// This log line is very fragile since it's used for ICANN reporting - DO NOT CHANGE.
|
||||
// New data to be logged should be added only to the JSON log statement below.
|
||||
// TODO(b/20725722): remove this log statement entirely once we've transitioned to using the
|
||||
// log line below instead, or change this one to be for human consumption only.
|
||||
|
||||
if (logger.isLoggable(Level.INFO)) {
|
||||
logger.infofmt(
|
||||
COMMAND_LOG_FORMAT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue