From fcfb471a8ae1fbc1d1b92afa53d994aedb0b3b32 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Sun, 14 Sep 2014 11:55:33 +0000
Subject: [PATCH] log OS version too

---
 .../src/net/i2p/router/tasks/CryptoChecker.java     | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/router/java/src/net/i2p/router/tasks/CryptoChecker.java b/router/java/src/net/i2p/router/tasks/CryptoChecker.java
index 9e110bd930..1aa3afc5e8 100644
--- a/router/java/src/net/i2p/router/tasks/CryptoChecker.java
+++ b/router/java/src/net/i2p/router/tasks/CryptoChecker.java
@@ -44,14 +44,21 @@ public class CryptoChecker {
             }
         }
         if (unavail) {
+            String s = "Java version: " + System.getProperty("java.version") +
+                       " OS: " + System.getProperty("os.name") + ' ' +
+                       System.getProperty("os.arch") + ' ' +
+                       System.getProperty("os.version");
+            if (log != null)
+                log.logAlways(log.WARN, s);
+            System.out.println("Warning: " + s);
             if (!SystemVersion.isJava7()) {
-                String s = "Java version: " + System.getProperty("java.version") + " Please consider upgrading to Java 7";
+                s = "Please consider upgrading to Java 7";
                 if (log != null)
                     log.logAlways(log.WARN, s);
                 System.out.println(s);
             }
             if (!isUnlimited()) {
-                String s = "Please consider installing the Java Cryptography Unlimited Strength Jurisdiction Policy Files from ";
+                s = "Please consider installing the Java Cryptography Unlimited Strength Jurisdiction Policy Files from ";
                 //if (SystemVersion.isJava8())
                 //    s  += JRE8;
                 //else if (SystemVersion.isJava7())
@@ -62,7 +69,7 @@ public class CryptoChecker {
                     log.logAlways(log.WARN, s);
                 System.out.println(s);
             }
-            String s = "This crypto will be required in a future release";
+            s = "This crypto will be required in a future release";
             if (log != null)
                 log.logAlways(log.WARN, s);
             System.out.println("Warning: " + s);
-- 
GitLab