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

justxuewei pushed a commit to branch feat-adasvc
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/feat-adasvc by this push:
     new 6f1d7bf  fix(adasvc): fix log info
6f1d7bf is described below

commit 6f1d7bf02e92678371ecc32f4ad3c1e84949a005
Author: XavierNiu <[email protected]>
AuthorDate: Thu Dec 2 13:04:55 2021 +0800

    fix(adasvc): fix log info
---
 cluster/cluster/adaptivesvc/cluster_invoker.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/cluster/cluster/adaptivesvc/cluster_invoker.go 
b/cluster/cluster/adaptivesvc/cluster_invoker.go
index 0a10ae5..2a7bc8b 100644
--- a/cluster/cluster/adaptivesvc/cluster_invoker.go
+++ b/cluster/cluster/adaptivesvc/cluster_invoker.go
@@ -61,11 +61,14 @@ func (ivk *adaptiveServiceClusterInvoker) Invoke(ctx 
context.Context, invocation
        // invoke
        result := invoker.Invoke(ctx, invocation)
 
+       // TODO(justxuewei): remove after test
+       logger.Debugf("%#v", result.Result())
+
        // update metrics
        remainingStr := 
invocation.AttachmentsByKey(constant.AdaptiveServiceRemainingKey, "")
        remaining, err := strconv.Atoi(remainingStr)
        if err != nil {
-               logger.Warnf("the remaining is unexpected, we need a int type, 
but we got %d, err: %v.", remainingStr, err)
+               logger.Warnf("the remaining is unexpected, we need a int type, 
but we got %s, err: %v.", remainingStr, err)
                return result
        }
        logger.Debugf("[adasvc cluster] The server status was received 
successfully, %s: %#v",

Reply via email to