Skip to content

Commit 5fa7f1b

Browse files
committed
Used the correct logger
1 parent 2033f73 commit 5fa7f1b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

go.mod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ require (
88
github.com/pires/go-proxyproto v0.8.0
99
github.com/pkg/errors v0.9.1
1010
github.com/quagmt/udecimal v1.8.0
11+
github.com/quickfixgo/enum v0.1.0
12+
github.com/quickfixgo/field v0.1.0
13+
github.com/quickfixgo/fix44 v0.1.0
14+
github.com/quickfixgo/tag v0.1.0
1115
github.com/shopspring/decimal v1.4.0
1216
github.com/stretchr/testify v1.10.0
1317
go.mongodb.org/mongo-driver v1.17.1

slog_log.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ func (l *SlogLog) Create() (Log, error) {
4040
}
4141

4242
func (l *SlogLog) CreateSessionLog(sessionID SessionID) (Log, error) {
43-
return &SlogLog{Name: l.Name, Logger: l.Logger.With("session", sessionID.String())}, nil
43+
return &SlogLog{Name: l.Name, Logger: l.Logger.With("sessionID", sessionID.String())}, nil
4444
}
4545

4646
func (l *SlogLog) logMessage(msg string, data []byte) {
47-
slog.Info(msg, "message", ToValues(data))
47+
l.Logger.Info(msg, "message", ToValues(data))
4848
}
4949

5050
func ToValues(s []byte) slog.Value {

0 commit comments

Comments
 (0)