Project

General

Profile

« Previous | Next » 

Revision 9455

bin/map: by_col: ensure verbosity is at least 2 in live mode (using new ints.set_min() instead of max() for clarity). documented that live column-based import MUST be run with verbosity 2+ (3 preferred) to provide debugging information for often-complex errors. without this, debugging is effectively impossible.

View differences:

bin/map
21 21
import csvs
22 22
import db_xml
23 23
import exc
24
import ints
24 25
import iters
25 26
import maps
26 27
import opts
......
127 128
        elif by_col: verbosity = 3 # show all queries to assist debugging
128 129
        else: verbosity = 1.1 # just show row progress
129 130
    
131
    # fix verbosity
132
    if by_col and not test: verbosity = ints.set_min(verbosity, 2)
133
        # live column-based import MUST be run with verbosity 2+ (3 preferred)
134
        # to provide debugging information for often-complex errors.
135
        # without this, debugging is effectively impossible.
136
        # automated tests are exempt from this because they output to the screen
137
    
130 138
    ##
131 139
    
132 140
    # Logging

Also available in: Unified diff