From 7a03509ae5d05ee2d66a666cc4b4f9909654bf42 Mon Sep 17 00:00:00 2001 From: ajnart Date: Fri, 13 Jan 2023 18:59:38 +0900 Subject: [PATCH] Remove log statements --- src/pages/api/configs/[slug].ts | 2 +- src/pages/index.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/api/configs/[slug].ts b/src/pages/api/configs/[slug].ts index 2c6a7b399..9dc1a8dc8 100644 --- a/src/pages/api/configs/[slug].ts +++ b/src/pages/api/configs/[slug].ts @@ -71,7 +71,7 @@ function Put(req: NextApiRequest, res: NextApiResponse) { const targetPath = path.join('data/configs', `${slug}.json`); fs.writeFileSync(targetPath, JSON.stringify(newConfig, null, 2), 'utf8'); - Consola.info(`Config '${slug}' has been updated and flushed to '${targetPath}'.`); + Consola.debug(`Config '${slug}' has been updated and flushed to '${targetPath}'.`); return res.status(200).json({ message: 'Configuration saved with success', diff --git a/src/pages/index.tsx b/src/pages/index.tsx index b3db0f195..1527f04cc 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -49,8 +49,6 @@ export async function getServerSideProps({ const translations = await getServerSideTranslations(req, res, dashboardNamespaces, locale); - Consola.info(`Decided to use configuration '${configName}'`); - const config = getFrontendConfig(configName as string); return {