mirror of
https://github.com/mjl-/mox.git
synced 2025-07-13 11:34:37 +03:00
reduce logging about db schema initializations during tests
they were a bit too noisy, not helpful
This commit is contained in:
@ -32,6 +32,7 @@ import (
|
||||
"github.com/mjl-/mox/mlog"
|
||||
"github.com/mjl-/mox/mox-"
|
||||
"github.com/mjl-/mox/moxio"
|
||||
"github.com/mjl-/mox/moxvar"
|
||||
"github.com/mjl-/mox/smtp"
|
||||
"github.com/mjl-/mox/smtpclient"
|
||||
"github.com/mjl-/mox/store"
|
||||
@ -351,7 +352,7 @@ func Init() error {
|
||||
|
||||
var err error
|
||||
log := mlog.New("queue", nil)
|
||||
opts := bstore.Options{Timeout: 5 * time.Second, Perm: 0660, RegisterLogger: log.Logger}
|
||||
opts := bstore.Options{Timeout: 5 * time.Second, Perm: 0660, RegisterLogger: moxvar.RegisterLogger(qpath, log.Logger)}
|
||||
DB, err = bstore.Open(mox.Shutdown, qpath, &opts, DBTypes...)
|
||||
if err == nil {
|
||||
err = DB.Read(mox.Shutdown, func(tx *bstore.Tx) error {
|
||||
|
Reference in New Issue
Block a user