Skip to content

Commit

Permalink
more verbose logging in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed Nov 15, 2023
1 parent c264097 commit b87a75e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ async def main(force: bool | None = None) -> None:
await deploy_attributes()

if force_install:
logging.info("Force install requested")
template_data: dict[str, Any] = {}
if "-" in sys.argv:
logging.info("Reading setup file from stdin")
raw_data = sys.stdin.read()
try:
template_data = json_loads(raw_data)
Expand All @@ -98,6 +100,7 @@ async def main(force: bool | None = None) -> None:
critical_error("Invalid setup file provided")

elif os.path.exists("/template.json"):
logging.info("Reading setup file from /template.json")
try:
raw_data = Path("/template.json").read_text()
template_data = json_loads(raw_data)
Expand Down

0 comments on commit b87a75e

Please sign in to comment.