From 4a251c1e08b307fc6a0324e7c72c7a8d48936c6d Mon Sep 17 00:00:00 2001 From: J2ObjC Team Date: Fri, 15 Dec 2023 11:39:43 -0800 Subject: [PATCH] Fix a few instances of wrong log format string. XLogger only supports %s, so this cl updates usages of %d with %s. Log statements will now properly align the parameters with the format string. PiperOrigin-RevId: 591315436 --- .../com/google/j2objc/util/logging/IOSLogHandler.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jre_emul/Classes/com/google/j2objc/util/logging/IOSLogHandler.java b/jre_emul/Classes/com/google/j2objc/util/logging/IOSLogHandler.java index a8019057f4..2168eb91fd 100644 --- a/jre_emul/Classes/com/google/j2objc/util/logging/IOSLogHandler.java +++ b/jre_emul/Classes/com/google/j2objc/util/logging/IOSLogHandler.java @@ -122,7 +122,11 @@ public String format(LogRecord record) { private Object nativeLog; public IOSLogHandler() { - setFormatter(new IOSLogFormatter()); + this(new IOSLogFormatter()); + } + + public IOSLogHandler(Formatter customFormatter) { + setFormatter(customFormatter); } @Override