Skip to content

Commit bd431a0

Browse files
committed
using debug module for logging
1 parent cb93e7f commit bd431a0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

extension.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var pjson = require('./package.json'),
22
Extension = require('openframe-extension'),
3-
execSync = require('child_process').execSync;
3+
execSync = require('child_process').execSync,
4+
debug = require('debug')('openframe-website');
45

56
/**
67
* Extensions should expose an instance of the Extension class.
@@ -35,7 +36,7 @@ module.exports = new Extension({
3536
* @return {string} The string with tokens replaced.
3637
*/
3738
function _replaceTokens(filePath, tokens) {
38-
console.log(_replaceTokens, filePath, tokens);
39+
debug(_replaceTokens, filePath, tokens);
3940

4041
function replace(token, value) {
4142
// tokens start with a $ which needs to be escaped, oops

0 commit comments

Comments
 (0)