Skip to content

Commit 28989f7

Browse files
authored
Update version logs (#372)
1 parent 8f12627 commit 28989f7

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/main/java/com/databricks/jdbc/commons/util/DeviceInfoLogUtil.java

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,18 @@ public static void logProperties(IDatabricksConnectionContext context) {
1919
System.getProperty("user.language") + "_" + System.getProperty("user.country");
2020
String charsetEncoding = Charset.defaultCharset().displayName();
2121

22-
LoggingUtil.log(LogLevel.INFO, String.format("Driver Version: %s", DriverUtil.getVersion()));
23-
LoggingUtil.log(LogLevel.INFO, String.format("JVM Name: %s", jvmName));
24-
LoggingUtil.log(LogLevel.INFO, String.format("JVM Specification Version: %s", jvmSpecVersion));
25-
LoggingUtil.log(LogLevel.INFO, String.format("JVM Implementation Version: %s", jvmImplVersion));
26-
LoggingUtil.log(LogLevel.INFO, String.format("JVM Vendor: %s", jvmVendor));
27-
LoggingUtil.log(LogLevel.INFO, String.format("Operating System Name: %s", osName));
28-
LoggingUtil.log(LogLevel.INFO, String.format("Operating System Version: %s", osVersion));
29-
LoggingUtil.log(LogLevel.INFO, String.format("Operating System Architecture: %s", osArch));
30-
LoggingUtil.log(LogLevel.INFO, String.format("Locale Name: %s", localeName));
22+
LoggingUtil.log(
23+
LogLevel.INFO, String.format("JDBC Driver Version: %s", DriverUtil.getVersion()));
24+
LoggingUtil.log(
25+
LogLevel.INFO,
26+
String.format(
27+
"JVM Name: %s, Vendor: %s, Specification Version: %s, Version: %s",
28+
jvmName, jvmVendor, jvmSpecVersion, jvmImplVersion));
29+
LoggingUtil.log(
30+
LogLevel.INFO,
31+
String.format(
32+
"Operating System Name: %s, Version: %s, Architecture: %s, Locale: ",
33+
osName, osVersion, osArch, localeName));
3134
LoggingUtil.log(LogLevel.INFO, String.format("Default Charset Encoding: %s", charsetEncoding));
3235
DatabricksUsageMetrics.exportUsageMetrics(
3336
context,

0 commit comments

Comments
 (0)