Skip to content

Commit

Permalink
add global DEBUG env var
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicoulaud-ledger committed Dec 3, 2024
1 parent 770bb7c commit 26340e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/erc7730/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import json
import logging
import os
from pathlib import Path
from typing import Annotated, assert_never

Expand All @@ -23,6 +25,12 @@
from erc7730.model.resolved.descriptor import ResolvedERC7730Descriptor
from erc7730.model.types import Address

if os.environ.get("DEBUG") is not None:
logging.basicConfig(
format="%(levelname)s [%(asctime)s] %(name)s - %(message)s", datefmt="%Y-%m-%d %H:%M:%S", level=logging.DEBUG
)


app = Typer(
name="erc7730",
no_args_is_help=True,
Expand Down

0 comments on commit 26340e8

Please sign in to comment.