mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-31 04:32:46 +01:00
19 lines
652 B
Python
19 lines
652 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
try:
|
|
# just a way to switch between web service and CLI/PI
|
|
import google.appengine.api
|
|
except:
|
|
try: # just a way to switch between CLI and PI
|
|
import calibre.constants
|
|
except:
|
|
import sys
|
|
if sys.version_info >= (2, 7):
|
|
import logging
|
|
logger = logging.getLogger(__name__)
|
|
loghandler=logging.StreamHandler()
|
|
loghandler.setFormatter(logging.Formatter("FFF:%(levelname)s:%(filename)s(%(lineno)d):%(message)s"))
|
|
logger.addHandler(loghandler)
|
|
loghandler.setLevel(logging.DEBUG)
|
|
logger.setLevel(logging.DEBUG)
|
|
|