Skip to content

Commit

Permalink
modify curve file service log level
Browse files Browse the repository at this point in the history
Change-Id: I972235588f16ddbb5175b634647470e167b67593
  • Loading branch information
bai-charisu authored and xu-chaojie committed Dec 3, 2020
1 parent 809a0ea commit c3272c4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/chunkserver/raftsnapshot/curve_file_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ void CurveFileService::get_file(::google::protobuf::RpcController* controller,
* 的uri format为:remote://ip:port/reader_id,所以使用ENXIO
* 代表reader id不存在的错误
*/
LOG(ERROR) << "reader " << request->reader_id()
<< " not found in reader map";
cntl->SetFailed(ENXIO, "Fail to find reader=%" PRId64,
request->reader_id());
return;
Expand All @@ -82,7 +80,6 @@ void CurveFileService::get_file(::google::protobuf::RpcController* controller,
<< request->count();

if (request->count() <= 0 || request->offset() < 0) {
LOG(ERROR) << "request count or offset elegal";
cntl->SetFailed(brpc::EREQUEST, "Invalid request=%s",
request->ShortDebugString().c_str());
return;
Expand Down Expand Up @@ -160,8 +157,6 @@ void CurveFileService::get_file(::google::protobuf::RpcController* controller,
&read_count,
&is_eof);
if (rc != 0) {
LOG(ERROR) << "Fail to read file " << reader->path() << "/"
<< request->filename() << " error code: " << rc;
cntl->SetFailed(rc, "Fail to read from path=%s filename=%s : %s",
reader->path().c_str(),
request->filename().c_str(), berror(rc));
Expand Down

0 comments on commit c3272c4

Please sign in to comment.