diff options
author | Anuradha <atalur@redhat.com> | 2014-02-10 19:23:42 +0530 |
---|---|---|
committer | Anuradha <atalur@redhat.com> | 2014-02-17 21:27:32 +0530 |
commit | 961ba477f544adcaf641207c6157073214c4f27b (patch) | |
tree | 1a6f01f1716a587dc829de9d1b5eec343555782d /xlators/cluster/nsr-server/src | |
parent | 0d92798e88c5444fb2cc23663b4ea9a345887756 (diff) |
nsr : Changes made in nsr logging functions
1) File pointers for worker and driver logs are now
in their respective ctx, instead of static file
pointer in nsr logging functions.
2) File pointer for recon-main-log now in
nsr_recon_private_t, instead of a static file pointer
in nsr recon logging function.
3) Changed a few fprintf to gflog.
Change-Id: Iab92e20d1691104bad19b7fe044a1d3ce2792ab3
Signed-off-by: Anuradha <atalur@redhat.com>
Diffstat (limited to 'xlators/cluster/nsr-server/src')
-rw-r--r-- | xlators/cluster/nsr-server/src/leader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/cluster/nsr-server/src/leader.c b/xlators/cluster/nsr-server/src/leader.c index 645f68bf6..6c3ca6d4f 100644 --- a/xlators/cluster/nsr-server/src/leader.c +++ b/xlators/cluster/nsr-server/src/leader.c @@ -196,13 +196,13 @@ nsr_confirm (xlator_t *this, etcd_session etcd, char *key) fitness = nsr_get_fitness(this); if (asprintf(&vote,"%s,%ld,%ld",priv->brick_uuid,(long)CONFIRMED, fitness) < 0) { - fprintf (stderr, "%s: failed to construct confirmation\n", - __func__); + gf_log (this->name, GF_LOG_ERROR, + "failed to construct confirmation"); return LS_ERROR; } if (etcd_set(etcd,key,vote,vote,LEADER_TTL) != ETCD_OK) { - fprintf (stderr, "%s: failed to confirm\n", __func__); + gf_log (this->name, GF_LOG_ERROR, "failed to confirm"); free(vote); return LS_FAILURE; } |