You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2014/02/11 21:07:11 UTC

git commit: Logged Mesos version in master, slave and drivers.

Updated Branches:
  refs/heads/master c0bd75c92 -> 269d8d4a1


Logged Mesos version in master, slave and drivers.

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


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

Branch: refs/heads/master
Commit: 269d8d4a1b94321e2bec62fc095fa1d6d5e46832
Parents: c0bd75c
Author: Vinod Kone <vi...@twitter.com>
Authored: Tue Feb 11 10:31:53 2014 -0800
Committer: Vinod Kone <vi...@twitter.com>
Committed: Tue Feb 11 12:06:16 2014 -0800

----------------------------------------------------------------------
 src/exec/exec.cpp   | 3 +++
 src/master/main.cpp | 4 +++-
 src/sched/sched.cpp | 5 ++++-
 src/slave/main.cpp  | 4 +++-
 4 files changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/269d8d4a/src/exec/exec.cpp
----------------------------------------------------------------------
diff --git a/src/exec/exec.cpp b/src/exec/exec.cpp
index 26a927a..6c5c483 100644
--- a/src/exec/exec.cpp
+++ b/src/exec/exec.cpp
@@ -25,6 +25,7 @@
 #include <sstream>
 
 #include <mesos/executor.hpp>
+#include <mesos/mesos.hpp>
 
 #include <process/delay.hpp>
 #include <process/dispatch.hpp>
@@ -127,6 +128,8 @@ public:
       checkpoint(_checkpoint),
       recoveryTimeout(_recoveryTimeout)
   {
+    LOG(INFO) << "Version: " << MESOS_VERSION;
+
     install<ExecutorRegisteredMessage>(
         &ExecutorProcess::registered,
         &ExecutorRegisteredMessage::executor_info,

http://git-wip-us.apache.org/repos/asf/mesos/blob/269d8d4a/src/master/main.cpp
----------------------------------------------------------------------
diff --git a/src/master/main.cpp b/src/master/main.cpp
index c18c305..ab4846e 100644
--- a/src/master/main.cpp
+++ b/src/master/main.cpp
@@ -126,8 +126,10 @@ int main(int argc, char** argv)
 
   LOG(INFO) << "Build: " << build::DATE << " by " << build::USER;
 
+  LOG(INFO) << "Version: " << MESOS_VERSION;
+
   if (build::GIT_TAG.isSome()) {
-    LOG(INFO) << "Git TAG: " << build::GIT_TAG.get();
+    LOG(INFO) << "Git tag: " << build::GIT_TAG.get();
   }
 
   if (build::GIT_SHA.isSome()) {

http://git-wip-us.apache.org/repos/asf/mesos/blob/269d8d4a/src/sched/sched.cpp
----------------------------------------------------------------------
diff --git a/src/sched/sched.cpp b/src/sched/sched.cpp
index fee1a04..153d4fe 100644
--- a/src/sched/sched.cpp
+++ b/src/sched/sched.cpp
@@ -30,6 +30,7 @@
 #include <string>
 #include <sstream>
 
+#include <mesos/mesos.hpp>
 #include <mesos/scheduler.hpp>
 
 #include <process/defer.hpp>
@@ -116,7 +117,9 @@ public:
       authenticating(None()),
       authenticated(false),
       reauthenticate(false)
-  {}
+  {
+    LOG(INFO) << "Version: " << MESOS_VERSION;
+  }
 
   virtual ~SchedulerProcess()
   {

http://git-wip-us.apache.org/repos/asf/mesos/blob/269d8d4a/src/slave/main.cpp
----------------------------------------------------------------------
diff --git a/src/slave/main.cpp b/src/slave/main.cpp
index 6a71316..44020af 100644
--- a/src/slave/main.cpp
+++ b/src/slave/main.cpp
@@ -117,8 +117,10 @@ int main(int argc, char** argv)
 
   LOG(INFO) << "Build: " << build::DATE << " by " << build::USER;
 
+  LOG(INFO) << "Version: " << MESOS_VERSION;
+
   if (build::GIT_TAG.isSome()) {
-    LOG(INFO) << "Git TAG: " << build::GIT_TAG.get();
+    LOG(INFO) << "Git tag: " << build::GIT_TAG.get();
   }
 
   if (build::GIT_SHA.isSome()) {