Skip to content

Commit

Permalink
End logger in Put route
Browse files Browse the repository at this point in the history
Issue: ARSN-441
  • Loading branch information
williamlardier committed Oct 24, 2024
1 parent 2079ec6 commit 8e830fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/s3routes/routes/routePUT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ export default function routePUT(
return routesUtils.responseNoBody(errors.BadRequest,
null, response, 400, log);
}
log.addDefaultFields({ contentLength: parsedContentLength });
// @ts-expect-error werelogs types are not up to date
log.end().addDefaultFields({ contentLength: parsedContentLength });
api.callApiMethod('objectPut', request, response, log,
(err, resHeaders) => {
routesUtils.statsReport500(err, statsClient);
Expand Down

0 comments on commit 8e830fe

Please sign in to comment.