Skip to content

Commit 3c6aa14

Browse files
committed
Add log level to CLI entrypoint
1 parent 4bf8084 commit 3c6aa14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pydantic2ts/cli/script.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ def main(module: str, output: str, json2ts_cmd: str = "json2ts") -> None:
221221
"""
222222
CLI entrypoint to run :func:`generate_typescript_defs`
223223
"""
224+
logging.basicConfig(level=logging.DEBUG, format="%(asctime)s %(message)s")
225+
224226
return generate_typescript_defs(module, output, json2ts_cmd)
225227

226228

0 commit comments

Comments
 (0)