diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-14 18:22:39 -0400 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-14 18:22:45 -0400 |
| commit | 76379d70589f858cfc5313e4d15369b1a491109d (patch) | |
| tree | 68781182511bdbafd4c3703399182a6bc3033161 /util.ts | |
| parent | 362aa677b404408a341dc0ddd2e1801c9d0fc200 (diff) | |
Add diagnostics.
Diffstat (limited to 'util.ts')
| -rw-r--r-- | util.ts | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -10,6 +10,18 @@ const _global = globalEval("this"); const print = V8Worker2.print; +// To control internal logging output +const debug = false; + +// Internal logging for deno. Use the "debug" variable above to control +// output. +// tslint:disable-next-line:no-any +export function log(...args: any[]): void { + if (debug) { + console.log(...args); + } +} + _global["console"] = { // tslint:disable-next-line:no-any log(...args: any[]): void { |
