1
0

log a warning if asserts are disabled

Maybe we should refuse to start, if launched with the main script.
But note that __debug__ is False on Android atm, as python is launched with -OO.
This commit is contained in:
SomberNight
2023-03-31 13:03:26 +00:00
parent 56e685feaa
commit 0f541be6f1

View File

@@ -29,6 +29,11 @@ from . import daemon
from .transaction import Transaction
from .plugin import BasePlugin
from .commands import Commands, known_commands
from .logging import get_logger
__version__ = ELECTRUM_VERSION
_logger = get_logger(__name__)
if not __debug__:
_logger.warning(f"__debug__ is False. running with asserts disabled!")