From a4e9d313474b18701c054db5c7f49d894b824c71 Mon Sep 17 00:00:00 2001 From: aalej Date: Fri, 4 Aug 2023 22:53:08 +0800 Subject: [PATCH] Hide confusing debug logs --- CHANGELOG.md | 1 + src/deploy/functions/runtimes/node/index.ts | 2 +- src/deploy/functions/runtimes/python/index.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb64df657bc..f689ee6b45a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,3 @@ - Fixed Astro web framework bug when loading configuration for version `2.9.7` and above. (#6213) - Increase Next.js config bundle timeout to 60 seconds (#6214) +- Hides "shutdown requested via /\_\_/quitquitquit" log during functions deploy when `--debug` flag is not passed. (#6212) diff --git a/src/deploy/functions/runtimes/node/index.ts b/src/deploy/functions/runtimes/node/index.ts index a777f57080f..70b37516c79 100644 --- a/src/deploy/functions/runtimes/node/index.ts +++ b/src/deploy/functions/runtimes/node/index.ts @@ -208,7 +208,7 @@ export class Delegate { stdio: [/* stdin=*/ "ignore", /* stdout=*/ "pipe", /* stderr=*/ "pipe"], }); childProcess.stdout?.on("data", (chunk: Buffer) => { - logger.info(chunk.toString("utf8")); + logger.debug(chunk.toString("utf8")); }); childProcess.stderr?.on("data", (chunk: Buffer) => { logger.error(chunk.toString("utf8")); diff --git a/src/deploy/functions/runtimes/python/index.ts b/src/deploy/functions/runtimes/python/index.ts index 2dfbebbef93..84a6200e267 100644 --- a/src/deploy/functions/runtimes/python/index.ts +++ b/src/deploy/functions/runtimes/python/index.ts @@ -151,7 +151,7 @@ export class Delegate implements runtimes.RuntimeDelegate { ); const childProcess = runWithVirtualEnv(args, this.sourceDir, envWithAdminPort); childProcess.stdout?.on("data", (chunk: Buffer) => { - logger.info(chunk.toString("utf8")); + logger.debug(chunk.toString("utf8")); }); childProcess.stderr?.on("data", (chunk: Buffer) => { logger.error(chunk.toString("utf8"));