updated config service logging to debug
This commit is contained in:
parent
a85cb92196
commit
05a60f684e
2 changed files with 3 additions and 11 deletions
|
@ -38,7 +38,6 @@ class ConfigService(abc.ABC):
|
|||
self.node = node
|
||||
class_file = inspect.getfile(self.__class__)
|
||||
templates_path = pathlib.Path(class_file).parent.joinpath(TEMPLATES_DIR)
|
||||
logging.info(templates_path)
|
||||
self.templates = TemplateLookup(directories=templates_path)
|
||||
self.config = {}
|
||||
self.custom_templates = {}
|
||||
|
@ -182,7 +181,7 @@ class ConfigService(abc.ABC):
|
|||
else:
|
||||
text = self.get_text_template(name)
|
||||
rendered = self.render_text(text, data)
|
||||
logging.info(
|
||||
logging.debug(
|
||||
"node(%s) service(%s) template(%s): \n%s",
|
||||
self.node.name,
|
||||
self.name,
|
||||
|
@ -241,13 +240,6 @@ class ConfigService(abc.ABC):
|
|||
)
|
||||
|
||||
def render_template(self, basename: str, data: Dict[str, Any] = None) -> str:
|
||||
logging.info(
|
||||
"node(%s) service(%s) rendering template(%s): %s",
|
||||
self.node.name,
|
||||
self.name,
|
||||
basename,
|
||||
data,
|
||||
)
|
||||
try:
|
||||
template = self.templates.get_template(basename)
|
||||
return self._render(template, data)
|
||||
|
|
|
@ -43,10 +43,10 @@ class ConfigServiceManager:
|
|||
subdirs.append(path)
|
||||
service_errors = []
|
||||
for subdir in subdirs:
|
||||
logging.info("loading config services from: %s", subdir)
|
||||
logging.debug("loading config services from: %s", subdir)
|
||||
services = utils.load_classes(str(subdir), ConfigService)
|
||||
for service in services:
|
||||
logging.info("found service: %s", service)
|
||||
logging.debug("found service: %s", service)
|
||||
try:
|
||||
self.add(service)
|
||||
except CoreError as e:
|
||||
|
|
Loading…
Add table
Reference in a new issue