From e6ff5815a4125632d218184555246ed56049649e Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 27 Jul 2012 16:40:36 +0200 Subject: [PATCH] info log message changed to debug log messages --- account_move_csv_import/import_move.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/account_move_csv_import/import_move.py b/account_move_csv_import/import_move.py index 705c0e035..1a1973f88 100644 --- a/account_move_csv_import/import_move.py +++ b/account_move_csv_import/import_move.py @@ -107,7 +107,7 @@ def run_import_meilleuregestion(self, cr, uid, ids, context=None): def run_import_generic(self, cr, uid, ids, setup, context=None): import_data = self.browse(cr, uid, ids[0]) - _logger.info('Starting to import CSV file') + _logger.debug('Starting to import CSV file') # Code inspired by module/wizard/base_import_language.py #print "Imported file=", base64.decodestring(import_data.file_to_import) fullstr = base64.decodestring(import_data.file_to_import) @@ -119,8 +119,8 @@ def run_import_generic(self, cr, uid, ids, setup, context=None): end_seq = None if top_lines_to_skip or bottom_lines_to_skip: cutstr = '\n'.join(fullstr.split('\n')[top_lines_to_skip:end_seq]) - _logger.info('%d top lines skipped' % top_lines_to_skip) - _logger.info('%d bottom lines skipped' % bottom_lines_to_skip) + _logger.debug('%d top lines skipped' % top_lines_to_skip) + _logger.debug('%d bottom lines skipped' % bottom_lines_to_skip) else: cutstr = fullstr fileobj = TemporaryFile('w+') @@ -143,7 +143,7 @@ def run_import_generic(self, cr, uid, ids, setup, context=None): line_seq = [] for row in reader: line_csv +=1 - _logger.info('[line %d] Content : %s' % (line_csv, row)) + _logger.debug('[line %d] Content : %s' % (line_csv, row)) # Date and journal are read from the first line if not date_datetime: date_datetime = datetime.strptime(row['date'], setup.get('date_format')) @@ -178,7 +178,7 @@ def run_import_generic(self, cr, uid, ids, setup, context=None): raise osv.except_osv('Error :', "Check that the decimal separator for the 'Debit' and 'Credit' columns is a dot") # If debit and credit = 0, we skip the move line if not debit and not credit: - _logger.info('[line %d] Skipped because debit=credit=0' % line_csv) + _logger.debug('[line %d] Skipped because debit=credit=0' % line_csv) continue line_seq.append((0, 0, { @@ -210,14 +210,14 @@ def run_import_generic(self, cr, uid, ids, setup, context=None): 'ref': move_ref, # in v6.1, 'name' <-> 'Number' -> do not fill ! 'line_id': line_seq, }, context=context) - _logger.info('Account move ID %d created with %d move lines' % (move_id, move_lines)) + _logger.debug('Account move ID %d created with %d move lines' % (move_id, move_lines)) fileobj.close() res_validate = self.pool.get('account.move').validate(cr, uid, [move_id], context=context) - _logger.info('Account move ID %d validated' % (move_id)) + _logger.debug('Account move ID %d validated' % (move_id)) if import_data.post_move: res_post = self.pool.get('account.move').post(cr, uid, [move_id], context=context) - _logger.info('Account move ID %d posted' % (move_id)) + _logger.debug('Account move ID %d posted' % (move_id)) action = { 'name': 'Account move', 'view_type': 'form',