From 4664a8156445a1d97a611568e94859c1ce68b54f Mon Sep 17 00:00:00 2001 From: Sean Robinson Date: Tue, 31 Mar 2009 20:23:08 -0700 Subject: [PATCH] Instantiate central log at WARNING level with RotatingFileHandler Signed-off-by: Sean Robinson --- wifi-radar | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wifi-radar b/wifi-radar index 17d5c57..7cba437 100755 --- a/wifi-radar +++ b/wifi-radar @@ -3002,6 +3002,9 @@ if __name__ == "__main__": gtk.gdk.threads_init() apQueue = Queue.Queue(100) commQueue = Queue.Queue(2) + logger = logging.getLogger("wrlog") + logger.setLevel(logging.WARNING) + logger.addHandler(logging.handlers.RotatingFileHandler(confFile.get_opt('DEFAULT.logfile'), maxBytes=64*1024, backupCount=5)) threading.Thread( None, scanning_thread, None, ( confFile, apQueue, commQueue ) ).start() main_radar_window = radar_window(confFile, apQueue, commQueue) gobject.timeout_add( 500, main_radar_window.update_plist_items ) -- 2.11.4.GIT