[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
This commit is contained in:
Géry Debongnie
2021-10-04 14:49:15 +02:00
committed by aab-odoo
parent 1c3b04f6a8
commit 0f7a8289a6
-2
View File
@@ -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.`);
}
},
});