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:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user