Skip to content

Commit

Permalink
fix(logger): définition de process par défaut
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Apr 15, 2024
1 parent a36514e commit dd34054
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
## Summary

Correctif Sur la variable process utilisée dans le logger

## Changelog

* [Added]
Expand All @@ -18,6 +20,8 @@

* [Fixed]

- Correction du logger par définiton de la variable process

* [Security]

---
Expand Down
6 changes: 6 additions & 0 deletions src/Common/Utils/LoggerByDefault.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ var LoggerByDefault = {
getLogger : function (name) {
// > Substitute global constants configured at compile time
// cf. webpack.config.js
// on définit process si non défini dans l'environnement
if (!process) {
process = {
env: {}
};
}
(process.env.VERBOSE) ? Log.enableAll() : Log.disableAll();
var logname = name || "default";
return Log.getLogger(logname);
Expand Down

0 comments on commit dd34054

Please sign in to comment.