You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@reef.apache.org by we...@apache.org on 2016/09/28 20:43:37 UTC
reef git commit: [REEF-1618] Add stack trace to exceptions handled in
TaskHostBase
Repository: reef
Updated Branches:
refs/heads/master a2278b4db -> 6ef63c196
[REEF-1618] Add stack trace to exceptions handled in TaskHostBase
This change adds full exception info to log printed in
TaskHostBase.HandleException.
JIRA:
[REEF-1618](https://issues.apache.org/jira/browse/REEF-1618)
Pull request:
This closes #1138
Project: http://git-wip-us.apache.org/repos/asf/reef/repo
Commit: http://git-wip-us.apache.org/repos/asf/reef/commit/6ef63c19
Tree: http://git-wip-us.apache.org/repos/asf/reef/tree/6ef63c19
Diff: http://git-wip-us.apache.org/repos/asf/reef/diff/6ef63c19
Branch: refs/heads/master
Commit: 6ef63c19633554b3889c14aa203b8c628df4538e
Parents: a2278b4
Author: Mariia Mykhailova <ma...@apache.org>
Authored: Wed Sep 28 12:30:19 2016 -0700
Committer: Markus Weimer <we...@apache.org>
Committed: Wed Sep 28 13:42:40 2016 -0700
----------------------------------------------------------------------
lang/cs/Org.Apache.REEF.IMRU/OnREEF/IMRUTasks/TaskHostBase.cs | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/reef/blob/6ef63c19/lang/cs/Org.Apache.REEF.IMRU/OnREEF/IMRUTasks/TaskHostBase.cs
----------------------------------------------------------------------
diff --git a/lang/cs/Org.Apache.REEF.IMRU/OnREEF/IMRUTasks/TaskHostBase.cs b/lang/cs/Org.Apache.REEF.IMRU/OnREEF/IMRUTasks/TaskHostBase.cs
index 874f586..5d56fd2 100644
--- a/lang/cs/Org.Apache.REEF.IMRU/OnREEF/IMRUTasks/TaskHostBase.cs
+++ b/lang/cs/Org.Apache.REEF.IMRU/OnREEF/IMRUTasks/TaskHostBase.cs
@@ -206,11 +206,10 @@ namespace Org.Apache.REEF.IMRU.OnREEF.IMRUTasks
private void HandleException(Exception originalException, Exception targetException)
{
Logger.Log(Level.Error,
- "Received Exception {0} in {1} with message: {2}. The cancellation token is: {3}.",
- originalException.GetType(),
+ "Received exception in {0} with cancellation token {1}: [{2}]",
TaskHostName,
- originalException.Message,
- _cancellationSource.IsCancellationRequested);
+ _cancellationSource.IsCancellationRequested,
+ originalException);
if (!_cancellationSource.IsCancellationRequested)
{
Logger.Log(Level.Error,