From 626fbf3986ab2a90db66e6347c555e5ac1bc858b Mon Sep 17 00:00:00 2001 From: Eratosthenes Date: Tue, 22 Feb 2011 18:58:37 -0500 Subject: [PATCH] More logging in XTables.py. --- pyfpdb/XTables.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfpdb/XTables.py b/pyfpdb/XTables.py index 7cf9b26e..19cd5278 100644 --- a/pyfpdb/XTables.py +++ b/pyfpdb/XTables.py @@ -35,12 +35,13 @@ import Xlib.display # FPDB modules from TableWindow import Table_Window +import Configuration # We might as well do this once and make them globals disp = Xlib.display.Display() root = disp.screen().root -c = Configuration.Config(file=options.config, dbname=options.dbname) +c = Configuration.Config() log = Configuration.get_logger("logging.conf", "hud", log_dir=c.dir_log, log_file='HUD-log.txt') class Table(Table_Window): @@ -59,6 +60,7 @@ class Table(Table_Window): self.number = None for listing in os.popen('xwininfo -root -tree').readlines(): if re.search(self.search_string, listing, re.I): + log.info(listing) mo = re.match(reg, listing, re.VERBOSE) title = re.sub('\"', '', mo.groupdict()["TITLE"]) if self.check_bad_words(title): continue