fix(core): паника горутины больше не убивает процесс приложения
This commit is contained in:
1 parent
623ef46f2f
commit
748d5a07ce
9 files changed
+176
-23
No files matched your search
@@ -5,6 +5,7 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/samosvalishe/free-turn-proxy/internal/logx"
|
||||
"github.com/samosvalishe/free-turn-proxy/internal/session"
|
||||
)
|
||||
|
||||
@@ -56,6 +57,8 @@ func (observer) OnPhase(phase session.Phase, streams, total int, errMsg string)
|
||||
}
|
||||
}
|
||||
|
||||
func coreLog() logx.Logger { return &sinkLogger{buf: sharedLogBuf} }
|
||||
|
||||
// sinkLogger дублирует логи в кольцевой буфер и EventSink.
|
||||
type sinkLogger struct {
|
||||
debug bool
|
||||
|
||||
Reference in new issue
Block a user