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/07 02:26:28 UTC

git commit: Logged git tag and sha in master and slave main.cpp.

Updated Branches:
  refs/heads/master 37628754c -> 1b1e6dcf5


Logged git tag and sha in master and slave main.cpp.

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


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

Branch: refs/heads/master
Commit: 1b1e6dcf50f6c7faaa7b78e5d9ed8fbeabfe7023
Parents: 3762875
Author: Vinod Kone <vi...@twitter.com>
Authored: Thu Feb 6 14:42:03 2014 -0800
Committer: Vinod Kone <vi...@twitter.com>
Committed: Thu Feb 6 14:42:36 2014 -0800

----------------------------------------------------------------------
 src/master/main.cpp | 8 ++++++++
 src/slave/main.cpp  | 8 ++++++++
 2 files changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/1b1e6dcf/src/master/main.cpp
----------------------------------------------------------------------
diff --git a/src/master/main.cpp b/src/master/main.cpp
index b1e4576..4f1859f 100644
--- a/src/master/main.cpp
+++ b/src/master/main.cpp
@@ -125,6 +125,14 @@ int main(int argc, char** argv)
 
   LOG(INFO) << "Build: " << build::DATE << " by " << build::USER;
 
+  if (build::GIT_TAG.isSome()) {
+    LOG(INFO) << "Git TAG: " << build::GIT_TAG.get();
+  }
+
+  if (build::GIT_SHA.isSome()) {
+    LOG(INFO) << "Git SHA: " << build::GIT_SHA.get();
+  }
+
   allocator::AllocatorProcess* allocatorProcess =
     new allocator::HierarchicalDRFAllocatorProcess();
   allocator::Allocator* allocator =

http://git-wip-us.apache.org/repos/asf/mesos/blob/1b1e6dcf/src/slave/main.cpp
----------------------------------------------------------------------
diff --git a/src/slave/main.cpp b/src/slave/main.cpp
index e0cae7b..6a71316 100644
--- a/src/slave/main.cpp
+++ b/src/slave/main.cpp
@@ -117,6 +117,14 @@ int main(int argc, char** argv)
 
   LOG(INFO) << "Build: " << build::DATE << " by " << build::USER;
 
+  if (build::GIT_TAG.isSome()) {
+    LOG(INFO) << "Git TAG: " << build::GIT_TAG.get();
+  }
+
+  if (build::GIT_SHA.isSome()) {
+    LOG(INFO) << "Git SHA: " << build::GIT_SHA.get();
+  }
+
   LOG(INFO) << "Creating \"" << isolation << "\" isolator";
 
   Isolator* isolator = Isolator::create(isolation);