diff --git a/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/KubernetesInternalRuntime.java b/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/KubernetesInternalRuntime.java index 85e70bdd82..cd04832b0b 100644 --- a/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/KubernetesInternalRuntime.java +++ b/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/KubernetesInternalRuntime.java @@ -253,9 +253,7 @@ public class KubernetesInternalRuntime startSynchronizer.completeExceptionally(startFailureCause); LOG.warn( - "Failed to start Kubernetes runtime of workspace {}. Cause: {}", - workspaceId, - startFailureCause.getMessage()); + "Failed to start Kubernetes runtime of workspace {}.", workspaceId, startFailureCause); boolean interrupted = Thread.interrupted() || startFailureCause instanceof RuntimeStartInterruptedException; // Cancels workspace servers probes if any @@ -266,9 +264,9 @@ public class KubernetesInternalRuntime runtimeCleaner.cleanUp(namespace, workspaceId); } catch (InfrastructureException cleanUppingEx) { LOG.warn( - "Failed to clean up namespace after workspace '{}' start failing. Cause: {}", + "Failed to clean up namespace after workspace '{}' start failing.", context.getIdentity().getWorkspaceId(), - cleanUppingEx.getMessage()); + cleanUppingEx); } if (interrupted) { @@ -492,14 +490,12 @@ public class KubernetesInternalRuntime getContext().getIdentity(), machineName, MachineStatus.FAILED); } catch (InfrastructureException e) { LOG.error( - "Unable to update status of the machine '{}:{}'. Cause: {}", + "Unable to update status of the machine '{}:{}'.", getContext().getIdentity().getWorkspaceId(), machineName, - e.getMessage()); + e); } eventPublisher.sendFailedEvent(machineName, ex.getMessage(), getContext().getIdentity()); - } else { - String message = ex.getMessage() + " (happened elsewhere)"; } return null; }; @@ -540,10 +536,10 @@ public class KubernetesInternalRuntime getContext().getIdentity(), machineName, MachineStatus.RUNNING); } catch (InfrastructureException e) { LOG.error( - "Unable to update status of the machine '{}:{}'. Cause: {}", + "Unable to update status of the machine '{}:{}'.", getContext().getIdentity().getWorkspaceId(), machineName, - e.getMessage()); + e); } eventPublisher.sendRunningEvent(machineName, getContext().getIdentity()); }; @@ -1069,11 +1065,11 @@ public class KubernetesInternalRuntime eventPublisher.sendServerRunningEvent(machineName, serverRef, url, identity); } catch (InfrastructureException e) { LOG.error( - "Unable to update status of the server '{}:{}:{}'. Cause: {}", + "Unable to update status of the server '{}:{}:{}'.", identity.getWorkspaceId(), machineName, serverRef, - e.getMessage()); + e); } } } @@ -1106,11 +1102,11 @@ public class KubernetesInternalRuntime } } catch (InfrastructureException e) { LOG.error( - "Unable to update status of the server '{}:{}:{}'. Cause: {}", + "Unable to update status of the server '{}:{}:{}'.", identity.getWorkspaceId(), machineName, serverName, - e.getMessage()); + e); } } }