def log_level(args, **ignored): log = get_resource("log") if args: log._set_level(args[0]) return "Log level at {0}".format(log.level_desc)
def main(self): get_resource(self.raw['service_id']).register(self.session, self.raw.get('data', None))
def main(self): get_resource(self.raw['service_id']).unregister(self.session)
def wrapper(*args, **kwargs): try: return func(*args, **kwargs) except Exception as error: get_resource("log").error("Unhandled exception", func, error)