Skip to content

Commit

Permalink
Merge pull request #5 from XbyOrange/v1.0.1
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
javierbrea authored Jun 4, 2019
2 parents fff6c15 + 9f80b62 commit 961ca67
Show file tree
Hide file tree
Showing 5 changed files with 3,037 additions and 3,403 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
### Removed

## [1.0.1] - 2019-06-04
### Fixed
- Upgrade dependencies to fix potential security vulnerability
- Bind winston tracer methods to winston tracer instance to fix an issue produced by new Winston version as described in: https://github.com/winstonjs/winston/issues/1577

## [1.0.0] - 2019-06-04
### Changed
- Forked from xbyorange mocks-server gitlab private repository.
7 changes: 7 additions & 0 deletions lib/common/tracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ const logger = winston.createLogger({
transports: [transports.console]
});

logger.silly = logger.silly.bind(logger);
logger.debug = logger.debug.bind(logger);
logger.verbose = logger.verbose.bind(logger);
logger.info = logger.info.bind(logger);
logger.warn = logger.warn.bind(logger);
logger.error = logger.error.bind(logger);

const set = (transport, level) => {
if (level === "silent") {
transports[transport].silent = true;
Expand Down
Loading

0 comments on commit 961ca67

Please sign in to comment.