Skip to content

Commit

Permalink
chore: Add --debug flag (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Dec 31, 2024
1 parent 272c7be commit 8d8aac6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions acringest.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,20 @@ def main() -> None: # pragma: no cover
action="store_true",
env_var="ACRINGEST_QUIET",
)
parser.add(
"--debug",
"-d",
default=False,
action="store_true",
env_var="ACRINGEST_DEBUG",
)

options = parser.parse_args()

if not options.quiet:
logging.basicConfig(level=logging.INFO)
if options.debug:
logging.basicConfig(level=logging.DEBUG)
logger.info("Starting %s", __name__)

app(
Expand Down

0 comments on commit 8d8aac6

Please sign in to comment.