def __call__(self, task): from dials.util import log import logging log.config_simple_cached() result = task() handlers = logging.getLogger('dials').handlers assert len(handlers) == 1, "Invalid number of logging handlers" return result, handlers[0].messages()
def execute_task(task): from dials.util import log log.config_simple_cached() result = task() handlers = logging.getLogger("dials").handlers assert len(handlers) == 1, "Invalid number of logging handlers" return result, handlers[0].messages()
def __call__(self, task): """ Call the function with th task and save the IO """ log.config_simple_cached() result = self.function(task) handlers = logging.getLogger("dials").handlers assert len(handlers) == 1, "Invalid number of logging handlers" return result, handlers[0].records
def execute_task(task): from cStringIO import StringIO from dials.util import log import logging log.config_simple_cached() result = task() handlers = logging.getLogger('dials').handlers assert len(handlers) == 1, "Invalid number of logging handlers" return result, handlers[0].messages()
def __call__(self, task): ''' Call the function with th task and save the IO ''' from dials.util import log import logging log.config_simple_cached() result = self.function(task) handlers = logging.getLogger('dials').handlers assert len(handlers) == 1, "Invalid number of logging handlers" return result, handlers[0].messages()
def __call__(self, task): ''' Call the function with th task and save the IO ''' from cStringIO import StringIO from dials.util import log import logging log.config_simple_cached() result = self.function(task) handlers = logging.getLogger('dials').handlers assert len(handlers) == 1, "Invalid number of logging handlers" return result, handlers[0].messages()
def execute_task(task): log.config_simple_cached() result = task() handlers = logging.getLogger("dials").handlers assert len(handlers) == 1, "Invalid number of logging handlers" return result, handlers[0].records