X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FLogger.ts;h=ffe8b3a5394431a13548e6110bfd2d08f1d009a3;hb=0fee03a8095f5599f8eccd920c1b1af6b3a20260;hp=e70ca9bceea59028f901ceb9bc53139dd6690cb7;hpb=acecce750cf1159a51f9d1a4dbfd717520739e92;p=ldk-java diff --git a/ts/structs/Logger.ts b/ts/structs/Logger.ts index e70ca9bc..ffe8b3a5 100644 --- a/ts/structs/Logger.ts +++ b/ts/structs/Logger.ts @@ -32,8 +32,9 @@ import * as bindings from '../bindings' // TODO: figure out location const impl_holder: LDKLoggerHolder = new LDKLoggerHolder(); let structImplementation = { // todo: in-line interface filling - log (record: String): void { - arg.log(record); + log (record: number): void { + const record_hu_conv: Record = new Record(null, record); + arg.log(record_hu_conv); }, @@ -43,7 +44,7 @@ import * as bindings from '../bindings' // TODO: figure out location } export interface LoggerInterface { - log(record: String): void; + log(record: Record): void; }