You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/07/23 04:59:30 UTC

[doris] branch master updated: [enhancement] Optimize the log content to make the meaning clearer (#11133)

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 83eb5a0e44 [enhancement] Optimize the log content to make the meaning clearer (#11133)
83eb5a0e44 is described below

commit 83eb5a0e44d06b001a03ef7240674e512d1b2380
Author: chenlinzhong <49...@qq.com>
AuthorDate: Sat Jul 23 12:59:25 2022 +0800

    [enhancement] Optimize the log content to make the meaning clearer (#11133)
    
    
    
    * [enhancement] Optimize the log content to make t
---
 be/src/agent/utils.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/be/src/agent/utils.cpp b/be/src/agent/utils.cpp
index 1916c31041..5be7763a29 100644
--- a/be/src/agent/utils.cpp
+++ b/be/src/agent/utils.cpp
@@ -124,7 +124,7 @@ Status MasterServerClient::report(const TReportRequest& request, TMasterResult*
         LOG(WARNING) << "fail to report to master. "
                      << "host=" << _master_info.network_address.hostname
                      << ", port=" << _master_info.network_address.port
-                     << ", code=" << client_status.code();
+                     << ", code=" << client_status.code() << ", reason=" << e.what();
         return Status::InternalError("Fail to report to master");
     }
 
@@ -161,10 +161,10 @@ Status MasterServerClient::refresh_storage_policy(TGetStoragePolicyResult* resul
         }
     } catch (TException& e) {
         client.reopen(config::thrift_rpc_timeout_ms);
-        LOG(WARNING) << "fail to report to master. "
+        LOG(WARNING) << "fail to refresh storge policy. "
                      << "host=" << _master_info.network_address.hostname
                      << ", port=" << _master_info.network_address.port
-                     << ", code=" << client_status.code() << ", e.what: " << e.what();
+                     << ", code=" << client_status.code() << ", reason=" << e.what();
         return Status::InternalError("Fail to refresh storage policy from master");
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org