mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 16:24:37 +03:00
wrap long lines with many logging parameters to multiple lines
for improved readability
This commit is contained in:
@ -143,7 +143,10 @@ func reputation(tx *bstore.Tx, log mlog.Log, m *store.Message) (rjunk *bool, rco
|
||||
xmessageList := func(q *bstore.Query[store.Message], descr string) []store.Message {
|
||||
t0 := time.Now()
|
||||
l, err := q.List()
|
||||
log.Debugx("querying messages for reputation", err, slog.Int("msgs", len(l)), slog.String("descr", descr), slog.Duration("queryduration", time.Since(t0)))
|
||||
log.Debugx("querying messages for reputation", err,
|
||||
slog.Int("msgs", len(l)),
|
||||
slog.String("descr", descr),
|
||||
slog.Duration("queryduration", time.Since(t0)))
|
||||
if err != nil {
|
||||
panic(queryError(fmt.Sprintf("listing messages: %v", err)))
|
||||
}
|
||||
|
Reference in New Issue
Block a user