pgtoolkit/toolbase.py
changeset 29 8636719a30f6
parent 20 73f0d53fef6b
child 30 a8b7cd92f39f
equal deleted inserted replaced
28:27fc0504663d 29:8636719a30f6
    41         
    41         
    42         if self.args.debug:
    42         if self.args.debug:
    43             handler = logging.StreamHandler()
    43             handler = logging.StreamHandler()
    44             handler.setFormatter(format)
    44             handler.setFormatter(format)
    45             handler.setLevel(logging.DEBUG)
    45             handler.setLevel(logging.DEBUG)
    46             logger = logging.getLogger('pgmanager')
    46             logger = logging.getLogger('pgmanager_sql')
    47             logger.addHandler(handler)
    47             logger.addHandler(handler)
       
    48             logger.setLevel(logging.DEBUG)
    48 
    49 
    49     def prepare_conn_from_metadb(self, name, lookup_name):
    50     def prepare_conn_from_metadb(self, name, lookup_name):
    50         '''Create connection in pgmanager using meta DB.
    51         '''Create connection in pgmanager using meta DB.
    51         
    52         
    52         name -- Name for connection in pgmanager.
    53         name -- Name for connection in pgmanager.