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 @@ -182,7 +182,7 @@ public void maybeEmitEvent(CouchbaseMappingEvent<?> event) {
try {
this.applicationContext.publishEvent(event);
} catch (Exception e) {
e.printStackTrace();
LOG.error("exception emitting event "+event, e);
}
} else {
LOG.info("maybeEmitEvent called, but CouchbaseTemplate not initialized with applicationContext");
Expand All @@ -196,11 +196,7 @@ private boolean canPublishEvent() {

protected <T> T maybeCallBeforeConvert(T object, String collection) {
if (entityCallbacks != null) {
try {
return entityCallbacks.callback(BeforeConvertCallback.class, object, collection);
} catch (Exception e) {
e.printStackTrace();
}
return entityCallbacks.callback(BeforeConvertCallback.class, object, collection);
} else {
LOG.info("maybeCallBeforeConvert called, but CouchbaseTemplate not initialized with applicationContext");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void maybeEmitEvent(CouchbaseMappingEvent<?> event) {
try {
this.applicationContext.publishEvent(event);
} catch (Exception e) {
e.printStackTrace();
LOG.error("exception emitting event "+event, e);
}
} else {
LOG.info("maybeEmitEvent called, but ReactiveCouchbaseTemplate not initialized with applicationContext");
Expand All @@ -203,11 +203,7 @@ private boolean canPublishEvent() {

protected <T> Mono<T> maybeCallBeforeConvert(T object, String collection) {
if (reactiveEntityCallbacks != null) {
try {
return reactiveEntityCallbacks.callback(ReactiveBeforeConvertCallback.class, object, collection);
} catch (Exception e) {
e.printStackTrace();
}
return reactiveEntityCallbacks.callback(ReactiveBeforeConvertCallback.class, object, collection);
} else {
LOG.info("maybeCallBeforeConvert called, but ReactiveCouchbaseTemplate not initialized with applicationContext");
}
Expand Down