Skip to content

Commit

Permalink
Merge pull request #10 from kusitms-28th-Meetup-E/fix/log
Browse files Browse the repository at this point in the history
fix:error log 추가
  • Loading branch information
eojinny authored Nov 11, 2023
2 parents c8f9370 + f7fb1c5 commit 9e2c771
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ private Mono<Void> onError(ServerWebExchange exchange, Class<? extends Throwable
byte[] bytes = objectMapper.writeValueAsBytes(responseBody);
wrap = exchange.getResponse().bufferFactory().wrap(bytes);
} catch (JsonProcessingException e) {
e.printStackTrace();
log.error("Error while processing JSON response:", e);
}
response.getHeaders().setContentType(MediaType.APPLICATION_JSON);

return exchange.getResponse().writeWith(Flux.just(wrap));
}

Expand Down

0 comments on commit 9e2c771

Please sign in to comment.