Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
package org.opensearch.commons.notifications.model

import org.opensearch.common.io.stream.Writeable
import org.opensearch.common.xcontent.ToXContent
import org.opensearch.common.xcontent.ToXContentObject

/**
* interface for representing objects.
*/
interface BaseModel : Writeable, ToXContent
interface BaseModel : Writeable, ToXContentObject
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ data class NotificationEvent(
return try {
XContentHelper.toXContent(this, XContentType.JSON, EMPTY_PARAMS, true).utf8ToString()
} catch (e: IOException) {
log.debug("Failed to convert NotificationEvent to string", e)
super.toString() + " threw " + e.toString()
}
}
Expand Down