Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22a7f0099
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22a7f0099
Commits
ef170b38
Commit
ef170b38
authored
5 years ago
by
haohongfan
Browse files
Options
Downloads
Patches
Plain Diff
feat: change %s to %+v
parent
00147a73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cluster/directory/base_directory.go
+1
-1
1 addition, 1 deletion
cluster/directory/base_directory.go
filter/filter_impl/hystrix_filter.go
+1
-1
1 addition, 1 deletion
filter/filter_impl/hystrix_filter.go
registry/kubernetes/registry_test.go
+3
-3
3 additions, 3 deletions
registry/kubernetes/registry_test.go
with
5 additions
and
5 deletions
cluster/directory/base_directory.go
+
1
−
1
View file @
ef170b38
...
...
@@ -92,7 +92,7 @@ func (dir *BaseDirectory) SetRouters(urls []*common.URL) {
factory
:=
extension
.
GetRouterFactory
(
url
.
Protocol
)
r
,
err
:=
factory
.
NewRouter
(
url
)
if
err
!=
nil
{
logger
.
Errorf
(
"Create router fail. router key: %s, url:%s, error: %
s
"
,
routerKey
,
url
.
Service
(),
err
.
Error
()
)
logger
.
Errorf
(
"Create router fail. router key: %s, url:%s, error: %
+v
"
,
routerKey
,
url
.
Service
(),
err
)
return
}
routers
=
append
(
routers
,
r
)
...
...
This diff is collapsed.
Click to expand it.
filter/filter_impl/hystrix_filter.go
+
1
−
1
View file @
ef170b38
...
...
@@ -124,7 +124,7 @@ func (hf *HystrixFilter) Invoke(ctx context.Context, invoker protocol.Invoker, i
_
,
_
,
err
:=
hystrix
.
GetCircuit
(
cmdName
)
configLoadMutex
.
RUnlock
()
if
err
!=
nil
{
logger
.
Errorf
(
"[Hystrix Filter]Errors occurred getting circuit for %s , will invoke without hystrix, error is: %
s
"
,
cmdName
,
err
.
Error
()
)
logger
.
Errorf
(
"[Hystrix Filter]Errors occurred getting circuit for %s , will invoke without hystrix, error is: %
+v
"
,
cmdName
,
err
)
return
invoker
.
Invoke
(
ctx
,
invocation
)
}
logger
.
Infof
(
"[Hystrix Filter]Using hystrix filter: %s"
,
cmdName
)
...
...
This diff is collapsed.
Click to expand it.
registry/kubernetes/registry_test.go
+
3
−
3
View file @
ef170b38
...
...
@@ -68,9 +68,9 @@ func (s *KubernetesRegistryTestSuite) TestSubscribe() {
time
.
Sleep
(
1e9
)
go
func
()
{
e
rr
=
r
.
Register
(
url
)
if
e
rr
!=
nil
{
t
.
Fatal
(
e
rr
)
registerE
rr
:
=
r
.
Register
(
url
)
if
registerE
rr
!=
nil
{
t
.
Fatal
(
registerE
rr
)
}
}()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment