[feature] log worker startup counts (#2958)

* log number of each worker kinds started, and log when stopped

* remove worker debug logging

* whoops, fix the count of media workers
This commit is contained in:
kim
2024-06-03 21:55:50 +00:00
committed by GitHub
parent 6ed6824d5d
commit f17dd62ff5
3 changed files with 34 additions and 10 deletions

View File

@ -127,8 +127,6 @@ func (w *MsgWorker[T]) run(ctx context.Context) {
if w.Process == nil || w.Queue == nil {
panic("not yet initialized")
}
log.Debugf(ctx, "%p: starting worker", w)
defer log.Debugf(ctx, "%p: stopped worker", w)
util.Must(func() { w.process(ctx) })
}