From 0f7a8289a6fb8387c3c1af41c6664b2a8448758f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Mon, 4 Oct 2021 14:49:15 +0200 Subject: [PATCH] [FIX] config: do not log anything if in prod mode It is worse having a dev mode in a production environment than the opposite. The purpose of the warning was to avoid that situation. However, in prod mode, it is not really necessary to log the config key. closes #915 --- src/config.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index d31c3892..0f9bd083 100644 --- a/src/config.ts +++ b/src/config.ts @@ -28,8 +28,6 @@ Object.defineProperty(config, "mode", { This is not suitable for production use. See https://github.com/odoo/owl/blob/master/doc/reference/config.md#mode for more information.`); - } else { - console.log(`Owl is now running in 'prod' mode.`); } }, });