Skip to content
Snippets Groups Projects
Commit 6f4b0a04 authored by Alena Petraki's avatar Alena Petraki :nail_care_tone1:
Browse files

Merge branch 'feature/PRXS-951-1961-AddAuthSystem' into 'feature/PRXS-951-Log'

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

See merge request perxis/perxis-go!163
parents 1d908f19 fb7b67ad
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