hunk.code_window:         if not dbname:
               return
           with tools.ignore(Exception), tools.mute_logger('odoo.sql_db'), sql_db.db_connect(dbname, allow_uri=True).cursor() as cr:
               cr.autocommit(True)
               msg = tools.ustr(record.msg)
               if record.args:
                   msg = msg % record.args
               traceback = getattr(record, 'exc_text', '')
               if traceback:
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:             # preclude risks of deadlocks
               cr.execute("SET LOCAL statement_timeout = 1000")
  
hunk.file_path: odoo/netsvc.py
hunk.type: replace
file: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  import main
  