first commit

This commit is contained in:
2020-11-03 18:30:14 -08:00
commit 31d8522470
1881 changed files with 345408 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
from os import getenv
from typing import Optional
def get_bool_env(name: str, default: Optional[bool] = None) -> bool:
value = getenv(name, default)
if not value:
return False
if value in ("False", "false", "0"):
return False
return True
HANDLE_ERROR_FALLBACK_ENABLED = get_bool_env(
"AIOLOGGER_HANDLE_ERROR_FALLBACK_ENABLED", default=True
)