This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch config-enhance
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/config-enhance by this push:
new e17a87a #1458 delete useless log (#1468)
e17a87a is described below
commit e17a87af2ba03ee46e983c7fea72c2e1cd655dab
Author: Mulavar <[email protected]>
AuthorDate: Wed Sep 22 15:45:38 2021 +0800
#1458 delete useless log (#1468)
Co-authored-by: dongjianhui03 <[email protected]>
---
filter/echo/filter.go | 1 -
filter/seata/filter.go | 3 +--
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/filter/echo/filter.go b/filter/echo/filter.go
index bbdbf22..c6b367a 100644
--- a/filter/echo/filter.go
+++ b/filter/echo/filter.go
@@ -43,7 +43,6 @@ type Filter struct{}
// Invoke response to the callers with its first argument.
func (f *Filter) Invoke(ctx context.Context, invoker protocol.Invoker,
invocation protocol.Invocation) protocol.Result {
- logger.Infof("invoking echo filter.")
logger.Debugf("%v,%v", invocation.MethodName(),
len(invocation.Arguments()))
if invocation.MethodName() == constant.ECHO &&
len(invocation.Arguments()) == 1 {
return &protocol.RPCResult{
diff --git a/filter/seata/filter.go b/filter/seata/filter.go
index 7f44104..61e4aa3 100644
--- a/filter/seata/filter.go
+++ b/filter/seata/filter.go
@@ -43,8 +43,7 @@ func init() {
// Filter when use seata-golang, use this filter to transfer xid
type Filter struct{}
-// When use Seata, transfer xid by attachments
-// Invoke Get Xid by attachment key `SEATA_XID`
+// Invoke Get Xid by attachment key `SEATA_XID`. When use Seata, transfer xid
by attachments
func (f *Filter) Invoke(ctx context.Context, invoker protocol.Invoker,
invocation protocol.Invocation) protocol.Result {
logger.Infof("invoking seata filter.")
xid := invocation.AttachmentsByKey(string(SEATA_XID), "")