mentie 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/environment.js +1 -1
- package/package.json +1 -1
package/modules/environment.js
CHANGED
|
@@ -69,7 +69,7 @@ env.web_loglevel = () => env.is_web() && new URLSearchParams( location?.search )
|
|
|
69
69
|
* Retrieves the log level set via environment variables in a Node.js environment.
|
|
70
70
|
* @returns {string|undefined} The log level from environment variables, or undefined if not set.
|
|
71
71
|
*/
|
|
72
|
-
env.node_loglevel = () => env.is_node() && process.env?.LOGLEVEL
|
|
72
|
+
env.node_loglevel = () => env.is_node() && ( process.env?.LOGLEVEL || process.env?.LOG_LEVEL )
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Retrieves the effective log level based on the environment. Defaults to 'info' in development environments, 'error' otherwise.
|