Skip to content

Commit

Permalink
Merge pull request #6 from DarkAce65/remove-logging-configuration
Browse files Browse the repository at this point in the history
Remove root logger configuration
  • Loading branch information
phillipdupuis committed May 19, 2021
2 parents efca21b + cf55cbe commit a8f182d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pydantic2ts/cli/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
except ImportError:
GenericModel = None

logging.basicConfig(level=logging.DEBUG, format="%(asctime)s %(message)s")

logger = logging.getLogger("pydantic2ts")


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


Expand Down

0 comments on commit a8f182d

Please sign in to comment.