better log level selection
This commit is contained in:
@@ -14,7 +14,7 @@ from console import console, setup_component_logging
|
|||||||
class AqaraCube(Hass, Mqtt):
|
class AqaraCube(Hass, Mqtt):
|
||||||
def initialize(self):
|
def initialize(self):
|
||||||
setup_component_logging(self)
|
setup_component_logging(self)
|
||||||
self.logger.setLevel(logging.DEBUG)
|
self.logger.setLevel(self.args.get('rich', logging.INFO))
|
||||||
# self.logger = logging.getLogger()
|
# self.logger = logging.getLogger()
|
||||||
|
|
||||||
# if (level := self.args.get('rich', False)):
|
# if (level := self.args.get('rich', False)):
|
||||||
|
|||||||
Reference in New Issue
Block a user