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