From: Patrick Donnelly Date: Fri, 18 Nov 2016 02:02:36 +0000 (-0500) Subject: client: improve failure messages/debugging X-Git-Tag: v11.1.0~206^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12110%2Fhead;p=ceph.git client: improve failure messages/debugging Signed-off-by: Patrick Donnelly --- diff --git a/src/ceph_fuse.cc b/src/ceph_fuse.cc index f5d04daeef9..5c6118a8e9d 100644 --- a/src/ceph_fuse.cc +++ b/src/ceph_fuse.cc @@ -220,7 +220,7 @@ int main(int argc, const char **argv, const char *envp[]) { cout << "ceph-fuse[" << getpid() << "]: starting ceph client" << std::endl; r = messenger->start(); if (r < 0) { - cerr << "ceph-fuse[" << getpid() << "]: ceph mount failed with " << cpp_strerror(-r) << std::endl; + cerr << "ceph-fuse[" << getpid() << "]: ceph messenger failed with " << cpp_strerror(-r) << std::endl; goto out_messenger_start_failed; } @@ -230,7 +230,7 @@ int main(int argc, const char **argv, const char *envp[]) { // start client r = client->init(); if (r < 0) { - cerr << "ceph-fuse[" << getpid() << "]: ceph mount failed with " << cpp_strerror(-r) << std::endl; + cerr << "ceph-fuse[" << getpid() << "]: ceph client failed with " << cpp_strerror(-r) << std::endl; goto out_init_failed; } diff --git a/src/client/Client.cc b/src/client/Client.cc index 22ab9ec8631..f45aab40770 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -5584,6 +5584,7 @@ int Client::mount(const std::string &mount_root, const UserPerm& perms, int r = authenticate(); if (r < 0) { + lderr(cct) << "authentication failed: " << cpp_strerror(r) << dendl; return r; }