Skip to content

Commit

Permalink
#1302 change log level to info (#1304)
Browse files Browse the repository at this point in the history
* Improve resource loading error handling and update Membrane configuration

* changed log level to info
  • Loading branch information
christiangoerdes authored Oct 9, 2024
1 parent 1c32a0c commit 5ad4eb4
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@

package com.predic8.membrane.core.exceptions;

import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.type.*;
import com.fasterxml.jackson.databind.*;
import com.predic8.membrane.core.http.*;
import org.slf4j.*;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.predic8.membrane.core.http.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.*;

import static com.predic8.membrane.core.http.MimeType.*;
import static com.predic8.membrane.core.http.MimeType.APPLICATION_PROBLEM_JSON;
import static com.predic8.membrane.core.http.MimeType.TEXT_PLAIN;


/**
Expand Down Expand Up @@ -124,7 +127,7 @@ public Response build() {
title = "An internal error occurred.";
detail = "Details can be found in the Membrane log searching for key: %s.".formatted(logKey);
} else {
log.warn("type={}\ntitle={}\n,detail={}\n,extension={},.", type, title, detail, extensions);
log.info("type={}\ntitle={}\n,detail={}\n,extension={},.", type, title, detail, extensions);
// root.put("exception", exception.printStackTrace(););
if (exception != null) {
root.put("message",exception.getMessage());
Expand Down

0 comments on commit 5ad4eb4

Please sign in to comment.