comparison roundup/backends/back_postgresql.py @ 4420:9655a1b65974

- more logger fixes -- use correct hierarchical logger names... ...always starting with "roundup." -- otherwise logger configuration changed in changeset 2010-08-09T03:36:06Z!schlatterbeck@users.sourceforge.net will not work (e.g. turning debugging on)
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Thu, 16 Sep 2010 07:44:50 +0000
parents 13b3155869e0
children 67bef70ab9b9
comparison
equal deleted inserted replaced
4419:eade357a1a16 4420:9655a1b65974
34 return d 34 return d
35 35
36 def db_create(config): 36 def db_create(config):
37 """Clear all database contents and drop database itself""" 37 """Clear all database contents and drop database itself"""
38 command = "CREATE DATABASE %s WITH ENCODING='UNICODE'"%config.RDBMS_NAME 38 command = "CREATE DATABASE %s WITH ENCODING='UNICODE'"%config.RDBMS_NAME
39 logging.getLogger('hyperdb').info(command) 39 logging.getLogger('roundup.hyperdb').info(command)
40 db_command(config, command) 40 db_command(config, command)
41 41
42 def db_nuke(config, fail_ok=0): 42 def db_nuke(config, fail_ok=0):
43 """Clear all database contents and drop database itself""" 43 """Clear all database contents and drop database itself"""
44 command = 'DROP DATABASE %s'% config.RDBMS_NAME 44 command = 'DROP DATABASE %s'% config.RDBMS_NAME

Roundup Issue Tracker: http://roundup-tracker.org/