You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2013/08/16 23:08:02 UTC
git commit: Fixed logging that ignored h_errno.
Updated Branches:
refs/heads/master de652804f -> 1306edbf7
Fixed logging that ignored h_errno.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1306edbf
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/1306edbf
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/1306edbf
Branch: refs/heads/master
Commit: 1306edbf7482b3910b64a58f68658d336b8f7618
Parents: de65280
Author: Benjamin Mahler <bm...@twitter.com>
Authored: Fri Aug 16 14:07:02 2013 -0700
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Fri Aug 16 14:07:55 2013 -0700
----------------------------------------------------------------------
3rdparty/libprocess/src/process.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/1306edbf/3rdparty/libprocess/src/process.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/process.cpp b/3rdparty/libprocess/src/process.cpp
index 7cade9a..8c427a0 100644
--- a/3rdparty/libprocess/src/process.cpp
+++ b/3rdparty/libprocess/src/process.cpp
@@ -1444,14 +1444,16 @@ void initialize(const string& delegate)
char hostname[512];
if (gethostname(hostname, sizeof(hostname)) < 0) {
- PLOG(FATAL) << "Ffailed to initialize, gethostname";
+ LOG(FATAL) << "Failed to initialize, gethostname: "
+ << hstrerror(h_errno);
}
// Lookup IP address of local hostname.
hostent* he;
if ((he = gethostbyname2(hostname, AF_INET)) == NULL) {
- PLOG(FATAL) << "Failed to initialize, gethostbyname2";
+ LOG(FATAL) << "Failed to initialize, gethostbyname2: "
+ << hstrerror(h_errno);
}
__ip__ = *((uint32_t *) he->h_addr_list[0]);