示例#1
0
 def _wrapper():
     try:
         logging.setup()
         func()
     except KeyboardInterrupt:
         LOG.info(u'Terminating')
     except Exception as ex:
         _fail(1, ex)
示例#2
0
def setUp():
    """
        Unit tests environment setup.
        Called only once at the beginning.
    """
    if not os.path.exists(test_disk_storage_location):
        os.mkdir(test_disk_storage_location)

    logging.setup()
示例#3
0
文件: __init__.py 项目: jc7998/deuce
def setUp():
    """
        Unit tests environment setup.
        Called only once at the beginning.
    """
    if not os.path.exists(test_disk_storage_location):
        os.mkdir(test_disk_storage_location)

    logging.setup()
示例#4
0
文件: app.py 项目: sujala/deuce
import deuce.util.log as logging
from deuce.transport.wsgi.driver import Driver

app_container = Driver()
logging.setup()
app = app_container.app