Skip to content

Commit

Permalink
chore: Add logging for unsuccessful requests (status code != 200) to … (
Browse files Browse the repository at this point in the history
#149)

Co-authored-by: Aliaksandr Stsiapanay <[email protected]>
  • Loading branch information
astsiapanay and astsiapanay authored Jan 17, 2024
1 parent e908a00 commit 6b2b50a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/epam/aidial/core/log/GfLogStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ public GfLogStore(Vertx vertx) {

@Override
public void save(ProxyContext context) {
if (!LOGGER.isInfoEnabled()
|| !context.getRequest().method().equals(HttpMethod.POST)
|| context.getResponse().getStatusCode() != HttpStatus.OK.getCode()) {
if (!LOGGER.isInfoEnabled() || !context.getRequest().method().equals(HttpMethod.POST)) {
return;
}

Expand Down

0 comments on commit 6b2b50a

Please sign in to comment.