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:
SiYue-ZO
2026-06-16 00:53:18 +08:00
parent b292defd95
commit fcc2882ffa
+8 -2
View File
@@ -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 {