Skip to content

Commit

Permalink
Remove extra param passed in to log setting fn (#2306)
Browse files Browse the repository at this point in the history
Co-authored-by: Ubuntu (Vicky) <ubuntu@vicky-test-openresty-cn.us-central1-f.c.audius-infrastructure.internal>
  • Loading branch information
vicky-g and Ubuntu (Vicky) committed Jan 13, 2022
1 parent 729059b commit 74bb101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions creator-node/src/apiHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports.handleResponseWithHeartbeat = (func) => {

const sendResponse = (module.exports.sendResponse = (req, res, resp) => {
const duration = getDuration(req)
let logger = setFieldsInChildLogger(req, resp, {
let logger = setFieldsInChildLogger(req, {
duration,
statusCode: resp.statusCode
})
Expand Down Expand Up @@ -103,7 +103,7 @@ const sendResponse = (module.exports.sendResponse = (req, res, resp) => {
const sendResponseWithHeartbeatTerminator =
(module.exports.sendResponseWithHeartbeatTerminator = (req, res, resp) => {
const duration = getDuration(req)
let logger = setFieldsInChildLogger(req, resp, {
let logger = setFieldsInChildLogger(req, {
duration,
statusCode: resp.statusCode
})
Expand Down

0 comments on commit 74bb101

Please sign in to comment.