Fix overriding previous logger in context

This commit is contained in:
Deluan
2022-12-14 11:50:16 -05:00
parent 6c4a0be6ff
commit 6489dd4478
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ func (p *players) Register(ctx context.Context, id, client, userAgent, ip string
if err != nil || id == "" {
plr, err = p.ds.Player(ctx).FindMatch(userName, client, userAgent)
if err == nil {
log.Debug("Found matching player", "id", plr.ID, "client", client, "username", userName, "type", userAgent)
log.Debug(ctx, "Found matching player", "id", plr.ID, "client", client, "username", userName, "type", userAgent)
} else {
plr = &model.Player{
ID: uuid.NewString(),