diff --git a/.changeset/neat-laws-hide.md b/.changeset/neat-laws-hide.md new file mode 100644 index 0000000000..0719de9430 --- /dev/null +++ b/.changeset/neat-laws-hide.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-proxy-backend': patch +--- + +Clean up proxy creation log messages and make them include the mount path. diff --git a/plugins/proxy-backend/src/service/router.ts b/plugins/proxy-backend/src/service/router.ts index 66a3152865..c2123ae4b1 100644 --- a/plugins/proxy-backend/src/service/router.ts +++ b/plugins/proxy-backend/src/service/router.ts @@ -148,6 +148,8 @@ export function buildMiddleware( return fullConfig?.allowedMethods?.includes(req.method!) ?? true; }; + // Makes http-proxy-middleware logs look nicer and include the mount path + filter.toString = () => route; // Only forward the allowed HTTP headers to not forward unwanted secret headers const responseHeaderAllowList = new Set(