diff --git a/client/src/main/java/com/orientechnologies/orient/client/remote/OStorageRemote.java b/client/src/main/java/com/orientechnologies/orient/client/remote/OStorageRemote.java index 3ef8409a978..cc45e19ded6 100755 --- a/client/src/main/java/com/orientechnologies/orient/client/remote/OStorageRemote.java +++ b/client/src/main/java/com/orientechnologies/orient/client/remote/OStorageRemote.java @@ -473,6 +473,7 @@ public T baseNetworkOperation( .debug( this, "Redirecting the request from server '%s' to the server '%s' because %s", + e, e.getFromServer(), e.toString(), e.getMessage()); diff --git a/core/src/main/java/com/orientechnologies/orient/core/db/viewmanager/ViewManager.java b/core/src/main/java/com/orientechnologies/orient/core/db/viewmanager/ViewManager.java index d4230e6e204..80df1b779b9 100644 --- a/core/src/main/java/com/orientechnologies/orient/core/db/viewmanager/ViewManager.java +++ b/core/src/main/java/com/orientechnologies/orient/core/db/viewmanager/ViewManager.java @@ -168,8 +168,7 @@ private void updateViews(ODatabaseDocumentInternal db) { // When the run is finished schedule the next run. schedule(); } catch (Exception e) { - OLogManager.instance().warn(this, "Failed to update views"); - e.printStackTrace(); + OLogManager.instance().warn(this, "Failed to update views", e); } } @@ -424,7 +423,8 @@ private List createNewIndexesForView( } return result; } catch (Exception e) { - e.printStackTrace(); + OLogManager.instance() + .warn(this, "Failed to create new indexes for view %s", e, view.getName()); return null; } } diff --git a/distributed/src/main/java/com/orientechnologies/orient/server/distributed/impl/ODistributedDatabaseImpl.java b/distributed/src/main/java/com/orientechnologies/orient/server/distributed/impl/ODistributedDatabaseImpl.java index 9c638d32f06..14fe9d1db82 100755 --- a/distributed/src/main/java/com/orientechnologies/orient/server/distributed/impl/ODistributedDatabaseImpl.java +++ b/distributed/src/main/java/com/orientechnologies/orient/server/distributed/impl/ODistributedDatabaseImpl.java @@ -159,6 +159,7 @@ public static boolean sendResponseBack( sender, OUT, "Error on sending response '%s' back (reqId=%s err=%s)", + e, response, iRequestId, e.toString()); diff --git a/distributed/src/main/java/com/orientechnologies/orient/server/hazelcast/OHazelcastPlugin.java b/distributed/src/main/java/com/orientechnologies/orient/server/hazelcast/OHazelcastPlugin.java index d1a730a7788..aea40e635bc 100755 --- a/distributed/src/main/java/com/orientechnologies/orient/server/hazelcast/OHazelcastPlugin.java +++ b/distributed/src/main/java/com/orientechnologies/orient/server/hazelcast/OHazelcastPlugin.java @@ -1663,6 +1663,7 @@ protected void installNewDatabasesFromCluster() { null, DIRECTION.IN, "Error on installing database '%s' on local node (error=%s)", + e, databaseName, e.toString()); }