Skip to content

Commit bacad3a

Browse files
Use debug instead of console
1 parent b66dcdc commit bacad3a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/webhooks.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var _ = require('lodash');
2+
var debug = require('debug')('strider-gitlab:webhooks');
23
var gravatar = require('gravatar');
34

45
module.exports = {
@@ -101,9 +102,9 @@ function receiveWebhook(emitter, req, res) {
101102
var result = startFromCommit(req.project, payload, sendJob);
102103

103104
if (result && result.skipCi) {
104-
console.log('Skipping commit due to [skip ci] tag');
105+
debug('Skipping commit due to [skip ci] tag');
105106
} else if (!result) {
106-
console.log('webhook received, but no branches matched or branch is not active');
107+
debug('webhook received, but no branches matched or branch is not active');
107108
}
108109

109110
function sendJob(job) {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
},
3939
"dependencies": {
4040
"async": "~0.2.9",
41+
"debug": "~0.7.3",
4142
"gravatar": "^1.0.6",
4243
"lodash": "~2.2.0",
4344
"step": "0.0.5",

0 commit comments

Comments
 (0)