mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 07:37:11 -05:00
remove logging hack
This commit is contained in:
parent
e2f306ae3b
commit
d44cbd5518
1 changed files with 0 additions and 8 deletions
|
|
@ -46,14 +46,6 @@ except ImportError:
|
||||||
from sqlalchemy import Unicode
|
from sqlalchemy import Unicode
|
||||||
UnicodeText = Unicode
|
UnicodeText = Unicode
|
||||||
|
|
||||||
# don't allow newlines when logging
|
|
||||||
import logging
|
|
||||||
_originalLog = logging.Logger._log
|
|
||||||
def _log(self, level, msg, *arg, **kwarg):
|
|
||||||
return _originalLog(
|
|
||||||
self, level, msg.replace("\n", " "), *arg, **kwarg)
|
|
||||||
logging.Logger._log = _log
|
|
||||||
|
|
||||||
from anki.hooks import runHook
|
from anki.hooks import runHook
|
||||||
|
|
||||||
# shared metadata
|
# shared metadata
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue