fix: resolve golines lint issue in subscription.go
Split long log.Printf lines to comply with 120-char line length limit.
This commit is contained in:
parent
b292defd95
commit
fcc2882ffa
1 changed files with 8 additions and 2 deletions
|
|
@ -261,7 +261,10 @@ func (s *eventSubscription) handle(ctx context.Context, evt Event) {
|
|||
go func() {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
log.Printf("events: subscriber %q timeout-handler goroutine panic recovered: %v\n%s", s.name, r, debug.Stack())
|
||||
log.Printf(
|
||||
"events: subscriber %q timeout-handler goroutine panic recovered: %v\n%s",
|
||||
s.name, r, debug.Stack(),
|
||||
)
|
||||
done <- handlerResult{panicked: true}
|
||||
}
|
||||
}()
|
||||
|
|
@ -316,7 +319,10 @@ func (s *eventSubscription) watchContext(ctx context.Context) {
|
|||
go func() {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
log.Printf("events: subscriber %q watchContext goroutine panic recovered: %v\n%s", s.name, r, debug.Stack())
|
||||
log.Printf(
|
||||
"events: subscriber %q watchContext goroutine panic recovered: %v\n%s",
|
||||
s.name, r, debug.Stack(),
|
||||
)
|
||||
}
|
||||
}()
|
||||
select {
|
||||
|
|
|
|||
Loading…
Reference in a new issue