You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by ja...@apache.org on 2020/11/26 06:15:01 UTC

[incubator-brpc] 04/05: polish comments on LOG*

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

jamesge pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git

commit 6b83e0f5dc2a187a1f111ee426778dfe26516acd
Author: jamesge <jg...@gmail.com>
AuthorDate: Thu Nov 26 14:14:10 2020 +0800

    polish comments on LOG*
---
 src/brpc/controller.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/brpc/controller.h b/src/brpc/controller.h
index fc39e52..89250a7 100755
--- a/src/brpc/controller.h
+++ b/src/brpc/controller.h
@@ -810,7 +810,8 @@ std::ostream& operator<<(std::ostream& os, const Controller::LogPostfixDummy& p)
 
 } // namespace brpc
 
-// Print contextual logs
+// Print logs appended with @rid which is got from "x-request-id"(set 
+// -request_id_header to change) in http header by default
 #define LOGD(cntl) LOG(DEBUG) << (cntl)->LogPostfix()
 #define LOGI(cntl) LOG(INFO) << (cntl)->LogPostfix()
 #define LOGW(cntl) LOG(WARNING) << (cntl)->LogPostfix()


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org