Skip to content

Commit

Permalink
add log record when joinParams early return
Browse files Browse the repository at this point in the history
  • Loading branch information
Leospard committed Aug 25, 2022
1 parent 0979169 commit 46b3051
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metadata/identifier/base_metadata_identifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import (
"net/url"
)

import (
"github.com/dubbogo/gost/log/logger"
)

import (
"dubbo.apache.org/dubbo-go/v3/common/constant"
)
Expand All @@ -44,6 +48,7 @@ func joinParams(joinChar string, params []string) string {
var joinedStr string
for _, param := range params {
if param == "" {
logger.Info("[Metadata report] Break loop in `joinParams` to avoid invalid path when meeting empty param")
break
}
joinedStr += joinChar
Expand Down

0 comments on commit 46b3051

Please sign in to comment.