diff options
author | Sanju Rakonde <srakonde@redhat.com> | 2019-09-26 20:07:11 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2019-10-01 07:55:26 +0000 |
commit | 341aab0fbbde0b9867bf8741791afec9354f54d8 (patch) | |
tree | 56580a3059c0efead6531df69b3cff2ff9db64d8 /xlators/mgmt | |
parent | 7464ece4b97935b8085ac456a452b697db3bf67e (diff) |
glusterd: improve logging
updates: bz#1193929
Change-Id: I5b4a39fbdaa43642a322440d550ca24df815cae9
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c b/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c index 5d8353ca51a..5c2595cc852 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c @@ -3538,9 +3538,9 @@ glusterd_copy_file(const char *source, const char *destination) ret = sys_write(dest_fd, buffer, read_len); if (ret != read_len) { gf_msg(this->name, GF_LOG_ERROR, 0, GD_MSG_FILE_OP_FAILED, - "Error writing in " - "file %s", - destination); + "Writing in " + "file %s failed with error %s", + destination, strerror(errno)); goto out; } } while (ret > 0); |