From: Matt Corallo Date: Sat, 29 Oct 2022 23:05:04 +0000 (+0000) Subject: [Java] Always log the LDK versions on startup X-Git-Tag: v0.0.113.0^2~21 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=e0935bf2d1e00cc0b809c7177aabc13bb5e8115c;p=ldk-java [Java] Always log the LDK versions on startup --- diff --git a/java_strings.py b/java_strings.py index b2a9d853..d3b3800d 100644 --- a/java_strings.py +++ b/java_strings.py @@ -74,8 +74,7 @@ public class bindings { if (!get_lib_version_string().equals(version.get_ldk_java_bindings_version())) throw new IllegalArgumentException("Compiled LDK library and LDK class failes do not match"); // Fetching the LDK versions from C also checks that the header and binaries match - get_ldk_c_bindings_version(); - get_ldk_version(); + 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()); } static native void init(java.lang.Class c, java.lang.Class slicedef); static native void init_class_cache(); @@ -237,7 +236,6 @@ void __attribute__((constructor)) debug_log_version() { DEBUG_PRINT("LDK version did not match the header we built against\\n"); if (check_get_ldk_bindings_version() == NULL) DEBUG_PRINT("LDK C Bindings version did not match the header we built against\\n"); - DEBUG_PRINT("Loaded LDK-Java Bindings with LDK %s and LDK-C-Bindings %s\\n", check_get_ldk_version(), check_get_ldk_bindings_version()); } """