Skip to content

Commit

Permalink
add initialization message for apps
Browse files Browse the repository at this point in the history
  • Loading branch information
acockburn committed Mar 17, 2023
1 parent ca2a9f5 commit fd7d7a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions appdaemon/app_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ async def initialize_app(self, name):

# Call its initialize function
try:
self.logger.info(f"Calling initialize() for {name}")
if asyncio.iscoroutinefunction(init):
await init()
else:
Expand Down Expand Up @@ -295,7 +296,7 @@ def get_app_debug_level(self, app):
async def init_object(self, name):
app_args = self.app_config[name]
self.logger.info(
"Initializing app %s using class %s from module %s",
"Loading app %s using class %s from module %s",
name,
app_args["class"],
app_args["module"],
Expand Down Expand Up @@ -355,7 +356,7 @@ async def init_object(self, name):

else:
self.logger.warning(
"Unable to find module module %s - '%s' is not initialized",
"Unable to find module module %s - '%s' is not loaded",
app_args["module"],
name,
)
Expand Down

0 comments on commit fd7d7a7

Please sign in to comment.