Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit e03380f

Browse files
DanielBriertonWardormeur
authored andcommitted
Reuse seneca.log instead of re-importing cp-logs-lib (#413)
1 parent 4e2fc58 commit e03380f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/controllers/dojo/submit.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ module.exports = function (args, done) {
1717
var env = seneca.options().env;
1818
var zenHostname = env.hostname;
1919
var protocol = env.protocol;
20-
const logger = require('cp-logs-lib')({ name: 'cp-dojos-service', level: 'warn' }).logger;
2120

2221
async.waterfall([
2322
// Set the initial dojo status : awaiting approval
@@ -80,10 +79,10 @@ module.exports = function (args, done) {
8079
payload: payload},
8180
function (err, res) {
8281
if (err) {
83-
logger.warn('submit-dojo', err);
82+
seneca.log.warn('submit-dojo', err);
8483
return cb(err);
8584
}
86-
logger.warn('submit-dojo', res);
85+
seneca.log.warn('submit-dojo', res);
8786
cb(null, savedDojo);
8887
});
8988
} else {

0 commit comments

Comments
 (0)