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 2015/03/02 22:49:44 UTC

mesos git commit: Minor fixes to logging gmtime_r() errno.

Repository: mesos
Updated Branches:
  refs/heads/master cc4ace3d3 -> f4a14410d


Minor fixes to logging gmtime_r() errno.


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

Branch: refs/heads/master
Commit: f4a14410d49f72102b806d65c86ab65800ab76e2
Parents: cc4ace3
Author: Vinod Kone <vi...@gmail.com>
Authored: Mon Mar 2 13:48:56 2015 -0800
Committer: Vinod Kone <vi...@gmail.com>
Committed: Mon Mar 2 13:49:28 2015 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/include/process/time.hpp | 4 ++--
 3rdparty/libprocess/src/encoder.hpp          | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/f4a14410/3rdparty/libprocess/include/process/time.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/time.hpp b/3rdparty/libprocess/include/process/time.hpp
index 116f34d..c5ab2a3 100644
--- a/3rdparty/libprocess/include/process/time.hpp
+++ b/3rdparty/libprocess/include/process/time.hpp
@@ -91,8 +91,8 @@ inline std::ostream& operator << (std::ostream& stream, const Time& time)
   // The RFC 3339 Format.
   tm tm_;
   if (gmtime_r(&secs, &tm_) == NULL) {
-    LOG(ERROR) << "Cannot convert the 'time' to a tm struct using gmtime_r(): "
-               << errno;
+    PLOG(ERROR)
+      << "Failed to convert the 'time' to a tm struct using gmtime_r()";
     return stream;
   }
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/f4a14410/3rdparty/libprocess/src/encoder.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/encoder.hpp b/3rdparty/libprocess/src/encoder.hpp
index e8487b4..5cbda93 100644
--- a/3rdparty/libprocess/src/encoder.hpp
+++ b/3rdparty/libprocess/src/encoder.hpp
@@ -181,7 +181,7 @@ public:
 
     tm tm_;
     PCHECK(gmtime_r(&rawtime, &tm_) != NULL)
-      << "Cannot convert the current time to a tm struct using gmtime_r()";
+      << "Failed to convert the current time to a tm struct using gmtime_r()";
 
     // TODO(benh): Check return code of strftime!
     strftime(date, 256, "%a, %d %b %Y %H:%M:%S GMT", &tm_);