Skip to content

Commit

Permalink
code review: critical level log
Browse files Browse the repository at this point in the history
critical level log that says that the rules will be reloaded.
Also add a critical level log that says that rules were reloaded when a hot reload happens
  • Loading branch information
tarilabs committed Aug 24, 2023
1 parent 0a21670 commit d9695d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ansible_rulebook/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ async def run(parsed_args: argparse.ArgumentParser) -> None:
if parsed_args.hot_reload is True and os.path.exists(
parsed_args.rulebook
):
logger.info(
"Hot-reload was requested, "
logger.critical(
"HOT-RELOAD: Hot-reload was requested, "
+ "will monitor for rulebook file changes"
)
file_monitor = parsed_args.rulebook
Expand Down Expand Up @@ -162,7 +162,7 @@ async def run(parsed_args: argparse.ArgumentParser) -> None:
if error_found:
raise Exception("One of the source plugins failed")
elif should_reload is True:
logger.info("Hot-reload, now restarting")
logger.critical("HOT-RELOAD! rules file changed, now restarting")
await run(parsed_args)


Expand Down

0 comments on commit d9695d1

Please sign in to comment.