chore(logx): add custom logger in queue (#627)

This commit is contained in:
Bo-Yi Wu
2021-08-11 11:13:29 +08:00
committed by GitHub
parent c81a316047
commit 24cf872b31
3 changed files with 51 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ import (
"github.com/appleboy/gorush/config"
"github.com/appleboy/gorush/core"
"github.com/appleboy/gorush/logx"
"github.com/appleboy/gorush/notify"
"github.com/appleboy/gorush/status"
@@ -52,6 +53,7 @@ func TestMain(m *testing.M) {
q, _ = queue.NewQueue(
queue.WithWorker(w),
queue.WithWorkerCount(4),
queue.WithLogger(logx.QueueLogger()),
)
q.Start()