Skip to content

Commit

Permalink
Prevent custom logger types from overriding default ones. Fixes #45
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Jun 17, 2018
1 parent fea7062 commit 2bd68ff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions signale.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,13 @@ class Signale {
}

_mergeTypes(standard, custom) {
const types = Object.assign({}, standard);

Object.keys(custom).forEach(type => {
standard[type] = Object.assign({}, standard[type], custom[type]);
types[type] = Object.assign({}, types[type], custom[type]);
});
return standard;

return types;
}

_formatStream(stream) {
Expand Down

0 comments on commit 2bd68ff

Please sign in to comment.