mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[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:
@@ -28,8 +28,6 @@ Object.defineProperty(config, "mode", {
|
|||||||
|
|
||||||
This is not suitable for production use.
|
This is not suitable for production use.
|
||||||
See https://github.com/odoo/owl/blob/master/doc/reference/config.md#mode for more information.`);
|
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.`);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user