Skip to content

Commit a8f182d

Browse files
Merge pull request #6 from DarkAce65/remove-logging-configuration
Remove root logger configuration
2 parents efca21b + cf55cbe commit a8f182d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pydantic2ts/cli/script.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
except ImportError:
2020
GenericModel = None
2121

22-
logging.basicConfig(level=logging.DEBUG, format="%(asctime)s %(message)s")
23-
2422
logger = logging.getLogger("pydantic2ts")
2523

2624

@@ -241,6 +239,7 @@ def main(
241239
"""
242240
CLI entrypoint to run :func:`generate_typescript_defs`
243241
"""
242+
logging.basicConfig(level=logging.DEBUG, format="%(asctime)s %(message)s")
244243
return generate_typescript_defs(module, output, exclude, json2ts_cmd)
245244

246245

0 commit comments

Comments
 (0)