Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove log noise #548

Merged
merged 2 commits into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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