save debug setting as self.debug

This commit is contained in:
Will Woods 2011-08-09 17:59:04 -04:00
parent 6962fe3e80
commit 3153bdfa8a

View File

@ -95,8 +95,8 @@ class Lorax(BaseLoraxClass):
self.conf.read(conf_file)
# set up the output
debug = self.conf.getboolean("lorax", "debug")
output_level = output.DEBUG if debug else output.INFO
self.debug = self.conf.getboolean("lorax", "debug")
output_level = output.DEBUG if self.debug else output.INFO
colors = self.conf.getboolean("output", "colors")
encoding = self.conf.get("output", "encoding")