Skip to content

Commit e0935bf

Browse files
committed
[Java] Always log the LDK versions on startup
1 parent 0de4267 commit e0935bf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

java_strings.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ def __init__(self, DEBUG: bool, target: Target, **kwargs):
7474
if (!get_lib_version_string().equals(version.get_ldk_java_bindings_version()))
7575
throw new IllegalArgumentException("Compiled LDK library and LDK class failes do not match");
7676
// Fetching the LDK versions from C also checks that the header and binaries match
77-
get_ldk_c_bindings_version();
78-
get_ldk_version();
77+
System.err.println("Loaded LDK-Java Bindings " + version.get_ldk_java_bindings_version() + " with LDK " + get_ldk_version() + " and LDK-C-Bindings " + get_ldk_c_bindings_version());
7978
}
8079
static native void init(java.lang.Class c, java.lang.Class slicedef);
8180
static native void init_class_cache();
@@ -237,7 +236,6 @@ class CommonBase {
237236
DEBUG_PRINT("LDK version did not match the header we built against\\n");
238237
if (check_get_ldk_bindings_version() == NULL)
239238
DEBUG_PRINT("LDK C Bindings version did not match the header we built against\\n");
240-
DEBUG_PRINT("Loaded LDK-Java Bindings with LDK %s and LDK-C-Bindings %s\\n", check_get_ldk_version(), check_get_ldk_bindings_version());
241239
}
242240
"""
243241

0 commit comments

Comments
 (0)