Skip to content

Commit

Permalink
fix(wrangler): Move "Compiling worker to ..." to debug logs
Browse files Browse the repository at this point in the history
When running `pages dev` in a Pages Functions project,
we output the compiled worker output path to stdout.
This path tends to be rather noisy in the grand scheme
of `pages dev` stdout things, and not much helpful.

This commit moves this log to the `debug` output.

Fixes #4265
  • Loading branch information
CarmenPopoviciu committed Jun 7, 2024
1 parent 7b2ba62 commit a16cdaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/wrangler/src/pages/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ export const Handler = async (args: PagesDevArguments) => {
`./functionsRoutes-${Math.random()}.mjs`
);

logger.log(`Compiling worker to "${scriptPath}"...`);
logger.debug(`Compiling worker to "${scriptPath}"...`);

const onEnd = () => scriptReadyResolve();
try {
const buildFn = async () => {
Expand Down

0 comments on commit a16cdaf

Please sign in to comment.