Skip to content

Commit 5e90f25

Browse files
authored
Merge pull request #608 from opsmill/pmc-20251109-logging
fix(cli): hide file paths in log output unless debug mode enabled
2 parents e37672c + d0dce64 commit 5e90f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrahub_sdk/ctl/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def init_logging(debug: bool = False) -> None:
4646

4747
log_level = "DEBUG" if debug else "INFO"
4848
FORMAT = "%(message)s"
49-
logging.basicConfig(level=log_level, format=FORMAT, datefmt="[%X]", handlers=[RichHandler()])
49+
logging.basicConfig(level=log_level, format=FORMAT, datefmt="[%X]", handlers=[RichHandler(show_path=debug)])
5050
logging.getLogger("infrahubctl")
5151

5252

0 commit comments

Comments
 (0)