Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
meenal-developer committed Aug 23, 2023
1 parent 574adc5 commit c9b7a35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@middleware.io/node-apm",
"version": "1.2.1",
"version": "1.2.2",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
3 changes: 2 additions & 1 deletion packages/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ module.exports.warn = (message) => {
};

module.exports.debug = (message) => {
logger.debug({message,"project.name":config.projectName,"service.name":config.serviceName});
logger.level = 'debug';
logger.log('debug', message, { "project.name": config.projectName,"service.name":config.serviceName});
};

module.exports.errorRecord = (e) => {
Expand Down

0 comments on commit c9b7a35

Please sign in to comment.