def notify_exc_info(self, context, serialized_notification, message, exception): notification = SerializableNotification.deserialize( context, serialized_notification) LOG.error(_("Guest exception on request %(req)s:\n%(exc)s") % {'req': notification.request_id, 'exc': exception}) notification.notify_exc_info(message, exception)
def from_dict(cls, values): n_values = values.pop('trove_notification', None) context = cls(**values) if n_values: context.notification = SerializableNotification.deserialize( context, n_values) return context
def from_dict(cls, values): n_values = values.pop('trove_notification', None) context = cls(**values) if n_values: context.notification = SerializableNotification.deserialize( context, n_values) return context
def notify_exc_info(self, context, serialized_notification, message, exception): notification = SerializableNotification.deserialize( context, serialized_notification) LOG.error(_("Guest exception on request %(req)s:\n%(exc)s") % {'req': notification.request_id, 'exc': exception}) notification.notify_exc_info(message, exception)
def notify_exc_info(self, context, serialized_notification, message, exception): notification = SerializableNotification.deserialize( context, serialized_notification) LOG.error("Guest exception on request %s:\n%s" % (notification.request_id, exception)) notification.notify_exc_info(message, exception)
def from_dict(cls, values): n_values = values.pop('trove_notification', None) values = cls._remove_incompatible_context_args(values) context = cls(**values) if n_values: context.notification = SerializableNotification.deserialize( context, n_values) return context
def from_dict(cls, values): n_values = values.pop('trove_notification', None) values = cls._remove_incompatible_context_args(values) context = cls(**values) if n_values: context.notification = SerializableNotification.deserialize( context, n_values) return context
def from_dict(cls, values): n_values = values.pop('trove_notification', None) ctx = super(TroveContext, cls).from_dict( values, limit=values.get('limit'), marker=values.get('marker'), service_catalog=values.get('service_catalog')) if n_values: ctx.notification = SerializableNotification.deserialize( ctx, n_values) return ctx
def notify_end(self, context, serialized_notification, notification_args): notification = SerializableNotification.deserialize( context, serialized_notification) notification.notify_end(**notification_args)
def notify_exc_info(self, context, serialized_notification, message, exception): notification = SerializableNotification.deserialize( context, serialized_notification) notification.notify_exc_info(message, exception)
def notify_end(self, context, serialized_notification, notification_args): notification = SerializableNotification.deserialize( context, serialized_notification) notification.notify_end(**notification_args)
def notify_exc_info(self, context, serialized_notification, message, exception): notification = SerializableNotification.deserialize( context, serialized_notification) notification.notify_exc_info(message, exception)