tidy up logging so that log isn't created in /fpdb/log/ unless it is being used
This commit is contained in:
Regular → Executable
+4
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user