Skip to content

Commit 4bee085

Browse files
committed
load_file() now logs an info-level message when a file is loaded; fixes #75
1 parent d6ebdb7 commit 4bee085

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

custom_components/pyscript/global_ctx.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,6 @@ def read_file(path):
266266
_LOGGER.error("%s", exc)
267267
return None
268268

269-
_LOGGER.debug("reading and parsing %s", filepath)
270-
271269
source = await Function.hass.async_add_executor_job(read_file, filepath)
272270

273271
if source is None:
@@ -288,4 +286,7 @@ def read_file(path):
288286
global_ctx.stop()
289287
return ast_ctx
290288
cls.set(global_ctx.get_name(), global_ctx)
289+
290+
_LOGGER.info("Loaded %s", filepath)
291+
291292
return None

0 commit comments

Comments
 (0)