mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-04-19 21:54:58 -04:00
initial commit
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
var index = require('../');
|
||||
|
||||
function debug () {
|
||||
if (index.debug_mode) {
|
||||
var data = Array.prototype.slice.call(arguments);
|
||||
data.unshift(new Date().toISOString());
|
||||
console.error.apply(null, data);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = debug;
|
||||
Reference in New Issue
Block a user