summaryrefslogtreecommitdiff
path: root/internal/workers/worker_msg.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2024-05-30 11:00:47 +0200
committerLibravatar GitHub <noreply@github.com>2024-05-30 11:00:47 +0200
commit2fd69ec58b801b276d475ef9e4af12deeacab5f6 (patch)
tree5564b8da6071dc0a480bd2f98c38d67fbb835a29 /internal/workers/worker_msg.go
parent[docs]: Document build tag for WASM SQLite (#2942) (diff)
downloadgotosocial-2fd69ec58b801b276d475ef9e4af12deeacab5f6.tar.xz
[chore] Make worker run messages debug output (#2944)
On startup and shutdown of a worker, we log a message of the worker being started together with a textual representation of a memory address. Though this can be handy for developers to debug startup/shutdown sequencing issues of the workers, it's typically not very useful or informative for an admin. We can also output a lot of these (on my system I get 265 lines of these during startup). This changes the messages from Info to Debug, to not print them under normal circumstances.
Diffstat (limited to 'internal/workers/worker_msg.go')
-rw-r--r--internal/workers/worker_msg.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/workers/worker_msg.go b/internal/workers/worker_msg.go
index 1920c964e..0b43f5e07 100644
--- a/internal/workers/worker_msg.go
+++ b/internal/workers/worker_msg.go
@@ -127,8 +127,8 @@ func (w *MsgWorker[T]) run(ctx context.Context) {
if w.Process == nil || w.Queue == nil {
panic("not yet initialized")
}
- log.Infof(ctx, "%p: starting worker", w)
- defer log.Infof(ctx, "%p: stopped worker", w)
+ log.Debugf(ctx, "%p: starting worker", w)
+ defer log.Debugf(ctx, "%p: stopped worker", w)
util.Must(func() { w.process(ctx) })
}