Skip to content

Commit

Permalink
Omitting exception with OffsetDateTime and jsr310 datatype version
Browse files Browse the repository at this point in the history
  • Loading branch information
dupliaka committed Apr 1, 2022
1 parent 11e6a21 commit 4002ab8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

import java.util.Collection;

import com.fasterxml.jackson.databind.json.JsonMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.kie.kogito.event.DataEvent;
import org.kie.kogito.event.EventPublisher;
import org.springframework.stereotype.Component;
Expand All @@ -27,7 +29,9 @@
@Component
public class LogEventPublisher implements EventPublisher {

ObjectMapper json = new ObjectMapper();
ObjectMapper json = JsonMapper.builder()
.addModule(new JavaTimeModule())
.build();

@Override
public void publish(DataEvent<?> event) {
Expand Down

0 comments on commit 4002ab8

Please sign in to comment.