Skip to content

Commit

Permalink
style(logger): add proxy name to logger
Browse files Browse the repository at this point in the history
  • Loading branch information
radyakaze committed Oct 1, 2024
1 parent 0414482 commit c7ced48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ export default defineNitroPlugin(async ({ router }) => {
router.use(config.baseUrl, handler)
router.use(`${config.baseUrl}/**`, handler)

logger.success(`Proxy successfully created: ${config.baseUrl} -> ${config.target}`)
logger.success(`(${config.name || 'no name'})`, `Proxy successfully created: ${config.baseUrl} -> ${config.target}`)
}
else {
logger.warn(`Skipping creation of proxy for "${config.baseUrl}" due to missing target`)
logger.warn(`(${config.name || 'no name'})`, `Skipping creation of proxy for "${config.baseUrl}" due to missing target`)
}
})
}
Expand Down

0 comments on commit c7ced48

Please sign in to comment.