Skip to content

Commit

Permalink
feat(anta): Enable asyncio DEBUGs when ANTA_DEBUG is true
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc committed Jun 20, 2024
1 parent b6f5e2f commit 111c97e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion anta/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
__copyright__ = "Copyright 2022-2024, Arista Networks, Inc."

# ANTA Debug Mode environment variable
__DEBUG__ = bool(os.environ.get("ANTA_DEBUG", "").lower() == "true")
__DEBUG__ = os.environ.get("ANTA_DEBUG", "").lower() == "true"
if __DEBUG__:
# enable asyncio DEBUG mode when __DEBUG__ is enabled
os.environ["PYTHONASYNCIODEBUG"] = "1"


# Source: https://rich.readthedocs.io/en/stable/appendix/colors.html
Expand Down

0 comments on commit 111c97e

Please sign in to comment.