MCPcopy Index your code
hub / github.com/codecombat/codecombat / debug

Function debug

scripts/generateLevels.js:65–68  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

63
64let debugOutput = false
65function debug (...args) {
66 if (!debugOutput) return
67 console.log('\x1b[36m%s\x1b[0m', moment().format('YYYY-MM-DD HH:mm:ss.SSS'), ...args)
68}
69
70main().then(() => {
71 console.log('Finished in', moment.duration(new Date() - scriptStartTime).asSeconds(), 'seconds')

Callers 1

mainFunction · 0.70

Calls 1

logMethod · 0.80

Tested by

no test coverage detected