Skip to content

Commit

Permalink
Remove log noise (#548)
Browse files Browse the repository at this point in the history
Remove log noise
  • Loading branch information
dansiviter committed Apr 26, 2022
1 parent 1fc8c1e commit 0f76d01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;

import jakarta.json.bind.JsonbException;
import jakarta.json.bind.serializer.DeserializationContext;
Expand All @@ -31,9 +30,6 @@
* Deserialization context implementation.
*/
public class DeserializationContextImpl extends ProcessingContext implements DeserializationContext {

private static final Logger LOGGER = Logger.getLogger(DeserializationContextImpl.class.getName());

private final List<Runnable> delayedSetters = new ArrayList<>();
private JsonParser.Event lastValueEvent;
private Customization customization = ClassCustomization.empty();
Expand Down Expand Up @@ -141,10 +137,8 @@ private <T> T deserializeItem(Type type, JsonParser parser) {
ModelDeserializer<JsonParser> modelDeserializer = getJsonbContext().getChainModelCreator().deserializerChain(type);
return (T) modelDeserializer.deserialize(parser, this);
} catch (JsonbException e) {
LOGGER.severe(e.getMessage());
throw e;
} catch (Exception e) {
LOGGER.severe(e.getMessage());
} catch (RuntimeException e) {
throw new JsonbException(Messages.getMessage(MessageKeys.INTERNAL_ERROR, e.getMessage()), e);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,8 @@ public void marshall(Object object, JsonGenerator jsonGenerator, boolean close)
try {
serializeObject(object, jsonGenerator);
} catch (JsonbException e) {
LOGGER.severe(e.getMessage());
throw e;
} catch (Exception e) {
LOGGER.severe(e.getMessage());
} catch (RuntimeException e) {
throw new JsonbException(Messages.getMessage(MessageKeys.INTERNAL_ERROR, e.getMessage()), e);
} finally {
try {
Expand Down

0 comments on commit 0f76d01

Please sign in to comment.