Project

General

Profile

« Previous | Next » 

Revision 990

bin/map: Only print error/run time stats in verbose mode. input.Makefile: Run import in verbose mode so that error/run time stats are still printed.

View differences:

inputs/input.Makefile
108 108
import: _always import-all verify ;
109 109

  
110 110
log = $(@:-all=)$(if $(n),.n=$(n),).$(date).log
111
import = -(set -x; "time" env commit=1 $(map2db)) $(if $(nolog),,\
111
import = -(set -x; "time" env commit=1 verbose=1 $(map2db)) $(if $(nolog),,\
112 112
$(if $(n),,>>$(log))) 2>&1$(if $(nolog),,$(if $(n),|tee -a $(log)))
113 113
# ignore import errors, which are often benign (e.g. invalid date format)
114 114

  
bin/map
249 249
    
250 250
    profiler.stop(row_ct)
251 251
    ex_tracker.add_iters(row_ct)
252
    sys.stderr.write('Processed '+str(row_ct)+' input rows\n')
253
    sys.stderr.write(profiler.msg()+'\n')
254
    sys.stderr.write(ex_tracker.msg()+'\n')
252
    if verbose:
253
        sys.stderr.write('Processed '+str(row_ct)+' input rows\n')
254
        sys.stderr.write(profiler.msg()+'\n')
255
        sys.stderr.write(ex_tracker.msg()+'\n')
255 256
    ex_tracker.exit()
256 257

  
257 258
def main():

Also available in: Unified diff