예제 #1
0
파일: cli.py 프로젝트: BenjamenMeyer/deuce
 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