Skip to content

Commit

Permalink
Merge pull request #1859 from SUI-Components/fix/logger-missing-trackers
Browse files Browse the repository at this point in the history
fix(packages/sui-logger): add missing trackers param
  • Loading branch information
andresz1 authored Nov 6, 2024
2 parents 3c501da + ebcae34 commit f001201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sui-logger/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ export const logErrorsMiddleware = (Trackers, error, req, res, next) => {
next(error)
}

export const createServerLogger = ({req, userId, trackerName} = {}) => {
export const createServerLogger = ({Trackers, req, userId, trackerName} = {}) => {
return createLogger({
...extractFrom(req),
Trackers,
listenUnhandled: createListenUnhandled(),
userId,
trackerName
Expand Down

0 comments on commit f001201

Please sign in to comment.