mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 06:02:26 -05:00
[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:
parent
6ed6824d5d
commit
f17dd62ff5
3 changed files with 34 additions and 10 deletions
|
|
@ -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) })
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue