Project

General

Profile

« Previous | Next » 

Revision 2898

bin/map: connect_db(): Only use autocommit mode if verbosity > 3, to avoid accidentally activating it if you want debug output in normal import mode

View differences:

map
133 133
    def connect_db(db_config):
134 134
        log('Connecting to '+sql.db_config_str(db_config))
135 135
        return sql.connect(db_config, caching=cache_sql,
136
            autocommit=verbosity > 2 and commit, log_debug=log_debug)
136
            autocommit=verbosity > 3 and commit, log_debug=log_debug)
137 137
    
138 138
    if end != None: end_str = str(end-1) # end is one past the last #
139 139
    else: end_str = 'end'

Also available in: Unified diff