From b8b110971b28b133c8f4be9b9958f0ef1f1f3164 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 17 Nov 2016 21:02:36 -0500 Subject: [PATCH] client: improve failure messages/debugging Signed-off-by: Patrick Donnelly --- src/ceph_fuse.cc | 4 ++-- src/client/Client.cc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.47.3