|
|
|
@ -113,16 +113,19 @@ def main(*args, **keywords):
|
|
|
|
|
file_logger.setLevel(logging.DEBUG)
|
|
|
|
|
|
|
|
|
|
# Add the log message handler to the logger
|
|
|
|
|
handler = logging.handlers.RotatingFileHandler(
|
|
|
|
|
log_filename, maxBytes=10000000, backupCount=3)
|
|
|
|
|
try:
|
|
|
|
|
handler = logging.handlers.RotatingFileHandler(
|
|
|
|
|
log_filename, maxBytes=10000000, backupCount=3)
|
|
|
|
|
|
|
|
|
|
file_logger.addHandler(handler)
|
|
|
|
|
file_logger.addHandler(handler)
|
|
|
|
|
|
|
|
|
|
# debug
|
|
|
|
|
if args.debug:
|
|
|
|
|
logging.basicConfig(level=logging.DEBUG)
|
|
|
|
|
logger = logging.getLogger('soaplib.wsgi')
|
|
|
|
|
logger.setLevel(logging.DEBUG)
|
|
|
|
|
# debug
|
|
|
|
|
if args.debug:
|
|
|
|
|
logging.basicConfig(level=logging.DEBUG)
|
|
|
|
|
logger = logging.getLogger('soaplib.wsgi')
|
|
|
|
|
logger.setLevel(logging.DEBUG)
|
|
|
|
|
except IOError:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
from urllib2 import URLError
|
|
|
|
|
|
|
|
|
|