equal
deleted
inserted
replaced
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. |