Skip to content

Commit 60d0318

Browse files
fix hiding logs
1 parent d8fd31a commit 60d0318

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/registry/middleware/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ export const bind = (app: Express, options: Config): Express => {
4646
if (options.verbosity) {
4747
app.use(
4848
morgan('dev', {
49-
skip: (req) => {
49+
skip: (req, res) => {
5050
// Hide logging development console calls
51-
return (
52-
req.method === 'POST' &&
53-
req.url.startsWith('/~actions/$$__oc__server___console__$$')
51+
return req.url.startsWith(
52+
`${res.conf.prefix}~actions/$$__oc__server___console__$$`
5453
);
5554
}
5655
})

0 commit comments

Comments
 (0)