Fix log() output so you can cut-and-paste it verbatim into a command line.
It used to say: redo: t/all redo: hello and now it says: redo t/all redo t/hello ie. there's no colon, and the path is intact. That means if the build fails, you can cut-and-paste 'redo t/hello', add a -v, and try to debug what went wrong.
This commit is contained in:
parent
3c42645cdf
commit
9c349cf652
3 changed files with 5 additions and 4 deletions
|
|
@ -48,10 +48,10 @@ def _log(s):
|
|||
|
||||
def _clog(s):
|
||||
if vars.VERBOSE: _log('\n')
|
||||
_log('\x1b[32mredo: %s\x1b[1m%s\x1b[m' % (vars.DEPTH, s))
|
||||
_log('\x1b[32mredo %s\x1b[1m%s\x1b[m' % (vars.DEPTH, s))
|
||||
def _bwlog(s):
|
||||
if vars.VERBOSE: _log('\n')
|
||||
_log('redo: %s%s' % (vars.DEPTH, s))
|
||||
_log('redo %s%s' % (vars.DEPTH, s))
|
||||
|
||||
def _cerr(s):
|
||||
_log('\x1b[31mredo: %s\x1b[1m%s\x1b[m' % (vars.DEPTH, s))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue