Skip to content

Commit 173a053

Browse files
committed
Used the correct logger
1 parent 2033f73 commit 173a053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slog_log.go

+2-2
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)