Improved logging on a fatal condition in command executor.

Review: https://reviews.apache.org/r/57773/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3f73a925
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3f73a925
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/3f73a925

Branch: refs/heads/master
Commit: 3f73a9250f5767cf1fc5f6777d04f9845f3e8eb3
Parents: 904092c
Author: Alexander Rukletsov <[email protected]>
Authored: Thu Mar 23 17:10:59 2017 +0100
Committer: Alexander Rukletsov <[email protected]>
Committed: Fri Mar 24 00:17:27 2017 +0100

----------------------------------------------------------------------
 src/launcher/executor.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/3f73a925/src/launcher/executor.cpp
----------------------------------------------------------------------
diff --git a/src/launcher/executor.cpp b/src/launcher/executor.cpp
index bd3c0cf..978f38a 100644
--- a/src/launcher/executor.cpp
+++ b/src/launcher/executor.cpp
@@ -893,7 +893,7 @@ private:
         }
 
         case CheckInfo::UNKNOWN: {
-          CHECK_NE(CheckInfo::UNKNOWN, taskData->taskInfo.check().type());
+          LOG(FATAL) << "UNKNOWN check type is invalid";
           break;
         }
       }

Reply via email to