Beispiel #1
0
 def _wrapper():
     try:
         logging.setup()
         func()
     except KeyboardInterrupt:
         LOG.info(u'Terminating')
     except Exception as ex:
         _fail(1, ex)
Beispiel #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()
Beispiel #3
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()
Beispiel #4
0
import deuce.util.log as logging
from deuce.transport.wsgi.driver import Driver

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