Skip to content

Commit 8bab499

Browse files
committed
improve log messages
1 parent 49417d1 commit 8bab499

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

idom/__main__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
import sys
2+
3+
from loguru import logger
4+
15
# pragma: no cover
26
from .cli import main
37

8+
9+
logger.remove(0)
10+
logger.add(sys.stdout, format="{message}", level="INFO")
11+
12+
413
if __name__ == "__main__":
514
main()

idom/client/manage.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import json
32
import shutil
43
import subprocess
@@ -101,7 +100,7 @@ def build(packages_to_install: Sequence[str], clean_build: bool = False) -> None
101100
snowpack_build = snowpack_config.setdefault("buildOptions", {})
102101
snowpack_build["clean"] = clean_build
103102

104-
logger.info(f"Installing {packages_to_install} ...", debug=True)
103+
logger.info(f"Installing {packages_to_install or 'packages'} ...", debug=True)
105104
_npm_install(packages_to_install, temp_app_dir)
106105
logger.info("Installed successfully ✅")
107106

0 commit comments

Comments
 (0)