tidy up logging so that log isn't created in /fpdb/log/ unless it is being used

This commit is contained in:
sqlcoder
2010-02-01 21:03:51 +00:00
parent 7e5f63ce89
commit 86330e536a
5 changed files with 23 additions and 13 deletions
Regular → Executable
+4 -1
View File
@@ -30,6 +30,10 @@ import Queue
from collections import deque # using Queue for now
import threading
import logging
# logging has been set up in fpdb.py or HUD_main.py, use their settings:
log = logging.getLogger("importer")
import pygtk
import gtk
@@ -39,7 +43,6 @@ import Database
import Configuration
import Exceptions
log = Configuration.get_logger("logging.conf", "importer")
# database interface modules
try: