mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04: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
|
||||
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
|
||||
|
||||
# shared metadata
|
||||
|
|
Loading…
Reference in a new issue