Skip to content

Commit

Permalink
Merge pull request #1697 from navikt/supress_driftsforstyrrelser
Browse files Browse the repository at this point in the history
reduser støy ved driftsforstyrrelser
  • Loading branch information
kenglxn authored Oct 4, 2023
2 parents 659ed93 + 06766a3 commit c545efd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,6 @@ const main = async () => {
} else {
const proxyOptions = {
logger: log,
on: {
error: (err, req, res) => {
log.error(
`${req.method} ${req.path} => [${res.statusCode}:${res.statusText}]: ${err.message}`
);
},
},
secure: true,
xfwd: true,
changeOrigin: true,
Expand All @@ -224,7 +217,6 @@ const main = async () => {
...proxyOptions,
selfHandleResponse: true, // res.end() will be called internally by responseInterceptor()
on: {
...proxyOptions.on,
proxyRes: responseInterceptor(async (responseBuffer, proxyRes) => {
try {
if (proxyRes.statusCode >= 400) {
Expand Down

0 comments on commit c545efd

Please sign in to comment.