Skip to content
Snippets Groups Projects
Commit fb7b67ad authored by ko_oler's avatar ko_oler
Browse files

Добавлено использование системного контекста при записи сообщений через Zap

parent 1d908f19
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ import (
"time"
"git.perx.ru/perxis/perxis-go/log"
"git.perx.ru/perxis/perxis-go/pkg/auth"
"git.perx.ru/perxis/perxis-go/pkg/errors"
)
......@@ -176,6 +177,6 @@ func (ws *BufferedWriteSyncer) syncLoop() {
defer ws.wg.Done()
for entries := range ws.syncQueue {
_ = ws.Service.Log(context.Background(), entries)
_ = ws.Service.Log(auth.WithSystem(context.Background()), entries)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment