Skip to content

Commit

Permalink
curvefs/client: too many logs
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhongsong committed Nov 17, 2023
1 parent fa2986a commit b918d45
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions curvefs/src/client/kvclient/memcache_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,13 @@ class MemCachedClient : public KVClient {

*errorlog = ResError(ue);
if (ue != MEMCACHED_NOTFOUND) {
LOG(ERROR) << "Get key = " << key << " error = " << *errorlog
<< ", get_value_len = " << value_length
<< ", expect_value_len = " << length;
free(res);
memcached_free(tcli);
tcli = nullptr;
LOG_EVERY_N(WARNING, 1000)
<< "Get key = " << key << " error = " << *errorlog
<< ", get_value_len = " << value_length
<< ", expect_value_len = " << length;
free(res);
memcached_free(tcli);
tcli = nullptr;
}

metric_->get.eps.count << 1;
Expand Down

0 comments on commit b918d45

Please sign in to comment.