Skip to content

Commit c24e525

Browse files
committed
Added exception to log in Main class
1 parent 3ce5ce0 commit c24e525

File tree

1 file changed

+5
-5
lines changed
  • src/main/java/org/fogbowcloud/manager

1 file changed

+5
-5
lines changed

src/main/java/org/fogbowcloud/manager/Main.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static void main(String[] args) throws Exception {
3838
computePlugin = (ComputePlugin) createInstance(
3939
ConfigurationConstants.COMPUTE_CLASS_KEY, properties);
4040
} catch (Exception e) {
41-
LOGGER.warn("Compute Plugin not especified in the properties.");
41+
LOGGER.warn("Compute Plugin not especified in the properties.", e);
4242
return;
4343
}
4444

@@ -47,7 +47,7 @@ public static void main(String[] args) throws Exception {
4747
authorizationPlugin = (AuthorizationPlugin) createInstance(
4848
ConfigurationConstants.AUTHORIZATION_CLASS_KEY, properties);
4949
} catch (Exception e) {
50-
LOGGER.warn("Authorization Plugin not especified in the properties.");
50+
LOGGER.warn("Authorization Plugin not especified in the properties.", e);
5151
return;
5252
}
5353

@@ -56,7 +56,7 @@ public static void main(String[] args) throws Exception {
5656
localIdentityPlugin = (IdentityPlugin) getIdentityPluginByPrefix(properties,
5757
ConfigurationConstants.LOCAL_PREFIX);
5858
} catch (Exception e) {
59-
LOGGER.warn("Local Identity Plugin not especified in the properties.");
59+
LOGGER.warn("Local Identity Plugin not especified in the properties.", e);
6060
return;
6161
}
6262

@@ -65,7 +65,7 @@ public static void main(String[] args) throws Exception {
6565
federationIdentityPlugin = (IdentityPlugin) getIdentityPluginByPrefix(properties,
6666
ConfigurationConstants.FEDERATION_PREFIX);
6767
} catch (Exception e) {
68-
LOGGER.warn("Federation Identity Plugin not especified in the properties.");
68+
LOGGER.warn("Federation Identity Plugin not especified in the properties.", e);
6969
return;
7070
}
7171

@@ -89,7 +89,7 @@ public static void main(String[] args) throws Exception {
8989
ConfigurationConstants.IMAGE_STORAGE_PLUGIN_CLASS, properties, computePlugin);
9090
} catch (Exception e) {
9191
imageStoragePlugin = new EgiImageStoragePlugin(properties, computePlugin);
92-
LOGGER.warn("Image Storage plugin not specified in properties. Using the default one.");
92+
LOGGER.warn("Image Storage plugin not specified in properties. Using the default one.", e);
9393
}
9494

9595
ManagerController facade = new ManagerController(properties);

0 commit comments

Comments
 (0)