Merge "Minor log msg changes"
authorAlessandro Boch <aboch@cisco.com>
Tue, 24 Sep 2013 00:21:43 +0000 (00:21 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 24 Sep 2013 00:21:43 +0000 (00:21 +0000)
opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/Controller.java
opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/SecureMessageReadWriteService.java

index 172ec98780ce7bd90a5b4fe19ded1ca462161ec4..72ee7a679b010400e342047278136e2c73aa3a09 100644 (file)
@@ -356,12 +356,12 @@ public class Controller implements IController, CommandProvider, IPluginInConnec
             String keyStoreFile = System.getProperty("controllerKeyStore");
             String trustStoreFile = System.getProperty("controllerTrustStore");
             if ((keyStoreFile == null) || keyStoreFile.trim().isEmpty()) {
-                ci.print("controllerKeyStore not specified in ./configuration/config.ini\n");
+                ci.print("controllerKeyStore not specified\n");
             } else {
                 ci.print("controllerKeyStore=" + keyStoreFile + "\n");
             }
             if ((trustStoreFile == null) || trustStoreFile.trim().isEmpty()) {
-                ci.print("controllerTrustStore not specified in ./configuration/config.ini\n");
+                ci.print("controllerTrustStore not specified\n");
             } else {
                 ci.print("controllerTrustStore=" + trustStoreFile + "\n");
             }
index 1a9dfdad95d94ea00ad733de6cca8987ced0b535..316526fefad6efa960b6b095f38227f2367b1d05 100644 (file)
@@ -88,29 +88,25 @@ public class SecureMessageReadWriteService implements IMessageReadWrite {
             keyStoreFile = keyStoreFile.trim();
         }
         if ((keyStoreFile == null) || keyStoreFile.isEmpty()) {
-            throw new FileNotFoundException(
-                    "controllerKeyStore not specified in ./configuration/config.ini");
+            throw new FileNotFoundException("TLS KeyStore file not found.");
         }
         if (keyStorePassword != null) {
             keyStorePassword = keyStorePassword.trim();
         }
         if ((keyStorePassword == null) || keyStorePassword.isEmpty()) {
-            throw new FileNotFoundException(
-                    "controllerKeyStorePassword not specified in ./configuration/config.ini");
+            throw new FileNotFoundException("TLS KeyStore Password not provided.");
         }
         if (trustStoreFile != null) {
             trustStoreFile = trustStoreFile.trim();
         }
         if ((trustStoreFile == null) || trustStoreFile.isEmpty()) {
-            throw new FileNotFoundException(
-                    "controllerTrustStore not specified in ./configuration/config.ini");
+            throw new FileNotFoundException("TLS TrustStore file not found");
         }
         if (trustStorePassword != null) {
             trustStorePassword = trustStorePassword.trim();
         }
         if ((trustStorePassword == null) || trustStorePassword.isEmpty()) {
-            throw new FileNotFoundException(
-                    "controllerTrustStorePassword not specified in ./configuration/config.ini");
+            throw new FileNotFoundException("TLS TrustStore Password not provided.");
         }
 
         KeyStore ks = KeyStore.getInstance("JKS");