Skip to content

Commit

Permalink
fix: log level priority (#126)
Browse files Browse the repository at this point in the history
* fix: log level priority

* chore: tslib added as peer dependency
  • Loading branch information
MoumitaM authored Nov 7, 2023
1 parent 83c18ff commit 96e1990
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 34 deletions.
69 changes: 37 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
"serialize-javascript": "6.0.1",
"uuid": "8.3.2"
},
"peerDependencies": {
"tslib": "2.6.2"
},
"devDependencies": {
"@babel/eslint-parser": "7.22.15",
"@commitlint/config-conventional": "17.7.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Logger.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const LOG_MSG_PREFIX = 'Rudder';
const LOG_LEVEL_MAP = {
log: 0,
info: 1,
debug: 2,
debug: 1,
info: 2,
warn: 3,
error: 4,
none: 5,
Expand Down

0 comments on commit 96e1990

Please sign in to comment.