##// END OF EJS Templates
fix setting log_level by name in Application...
MinRK -
Show More
@@ -104,8 +104,11 b' class Application(SingletonConfigurable):'
104 104 config=True,
105 105 help="Set the log level by value or name.")
106 106 def _log_level_changed(self, name, old, new):
107 """Adjust the log level when log_level is set."""
107 108 if isinstance(new, basestring):
108 self.log_level = getattr(logging, new)
109 new = getattr(logging, new)
110 self.log_level = new
111 self.log.setLevel(new)
109 112
110 113 # the alias map for configurables
111 114 aliases = Dict(dict(log_level='Application.log_level'))
@@ -179,10 +182,6 b' class Application(SingletonConfigurable):'
179 182 if self.subapp is not None:
180 183 return self.subapp.start()
181 184
182 def _log_level_changed(self, name, old, new):
183 """Adjust the log level when log_level is set."""
184 self.log.setLevel(new)
185
186 185 def print_alias_help(self):
187 186 """Print the alias part of the help."""
188 187 if not self.aliases:
General Comments 0
You need to be logged in to leave comments. Login now