Skip to content

Commit c43fe47

Browse files
committed
fix(kotlin): use string format specifier for record line
The appropriate specifier for unsigned integers is `d` but this triggers an `IllegalFormatConversionException` panic. With `s`, we can successfully build the nodes with the custom log writer
1 parent 76cda5e commit c43fe47

File tree

1 file changed

+1
-1
lines changed
  • bindings/kotlin/ldk-node-jvm/lib/src/test/kotlin/org/lightningdevkit/ldknode

1 file changed

+1
-1
lines changed

bindings/kotlin/ldk-node-jvm/lib/src/test/kotlin/org/lightningdevkit/ldknode/LibraryTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class CustomLogWriter(private var currentLogLevel: LogLevel = LogLevel.INFO) :
132132
java.time.LocalDateTime.now()
133133
.format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))
134134
return String.format(
135-
"%s %-5s [%s:%d] %s\n",
135+
"%s %-6s [%s:%s] %s\n",
136136
timestamp,
137137
record.level,
138138
record.modulePath,

0 commit comments

Comments
 (0)