Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
joehand committed May 2, 2017
1 parent 6330b5d commit 7d6667d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var progress = require('progress-string')
var cliTruncate = require('cli-truncate')
var neatLog = require('neat-log')
var output = require('neat-log/output')
var debug = require('debug')('dat-next')
var view = require('./ui')

var Dat = require('./')
Expand All @@ -26,8 +27,13 @@ if (argv.help) return usage()
var src = argv._[0] || process.cwd()
var dest = argv._[1]
var logspeed = argv.logspeed || 400
var quiet = debug.enabled || !!process.env.DEBUG

var neat = neatLog([view.main, view.progress], {logspeed: logspeed})

var neat = neatLog([view.main, view.progress], {
logspeed: logspeed,
quiet: quiet
})
neat.use(runDat)
neat.use(trackNetwork)
neat.use(trackProgress)
Expand Down

0 comments on commit 7d6667d

Please sign in to comment.