diff options
author | ThanosApollo <[email protected]> | 2022-10-01 08:37:56 +0300 |
---|---|---|
committer | ThanosApollo <[email protected]> | 2022-10-01 08:37:56 +0300 |
commit | aeb7f1457eb5fa0591f2f1020d83a616d9b1fcb6 (patch) | |
tree | b5b7fd4ee1bd336d82348ff0a799f1e0c8847fdb /.local/share/Anki2/addons21/anki_reworked/utils/logger.py | |
parent | a4a7c05aaa05c267ce304697daddde6637fbd8a9 (diff) |
Remove anki add ons
Diffstat (limited to '.local/share/Anki2/addons21/anki_reworked/utils/logger.py')
-rw-r--r-- | .local/share/Anki2/addons21/anki_reworked/utils/logger.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/.local/share/Anki2/addons21/anki_reworked/utils/logger.py b/.local/share/Anki2/addons21/anki_reworked/utils/logger.py deleted file mode 100644 index 3c67988..0000000 --- a/.local/share/Anki2/addons21/anki_reworked/utils/logger.py +++ /dev/null @@ -1,17 +0,0 @@ -import os -import logging -# declare an empty logger class -class EmptyLogger(): - def debug(self, *_): - return None -logger = EmptyLogger() -# init logger -if 'ANKI_REDESIGN_DEBUG_LOGGING' in os.environ: - filename = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "user_files", "test.log") - logging.basicConfig(format='%(asctime)s %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s', - datefmt='%Y%m%d-%H:%M:%S', - filename=filename, - level=logging.DEBUG) - logger = logging.getLogger('anki-redesign') - logger.setLevel(logging.DEBUG) - logger.debug("Initialized anki") |