mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 08:52:55 +01:00
Need to set logger.setLevel() again with import changes to see debugs in plugin.
This commit is contained in:
parent
ef7ba42f9a
commit
0d1dd7ab5c
1 changed files with 7 additions and 1 deletions
|
|
@ -17,7 +17,13 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
try: # just a way to switch between CLI and PI
|
try: # just a way to switch between CLI and PI
|
||||||
import calibre.constants
|
from calibre.constants import DEBUG
|
||||||
|
if os.environ.get('CALIBRE_WORKER', None) is not None or DEBUG:
|
||||||
|
loghandler.setLevel(logging.DEBUG)
|
||||||
|
logger.setLevel(logging.DEBUG)
|
||||||
|
else:
|
||||||
|
loghandler.setLevel(logging.CRITICAL)
|
||||||
|
logger.setLevel(logging.CRITICAL)
|
||||||
except:
|
except:
|
||||||
import sys
|
import sys
|
||||||
if sys.version_info >= (2, 7):
|
if sys.version_info >= (2, 7):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue