/*
 * Decompiled with CFR 0.152.
 */
package org.jivesoftware.smack.parsing;

import java.util.logging.Level;
import java.util.logging.Logger;
import org.jivesoftware.smack.parsing.ParsingExceptionCallback;
import org.jivesoftware.smack.parsing.UnparsablePacket;

public class ExceptionLoggingCallback
extends ParsingExceptionCallback {
    private static final Logger LOGGER = Logger.getLogger(ExceptionLoggingCallback.class.getName());

    @Override
    public void handleUnparsablePacket(UnparsablePacket unparsed) throws Exception {
        LOGGER.log(Level.SEVERE, "Smack message parsing exception: ", unparsed.getParsingException());
        LOGGER.severe("Unparsed content: " + unparsed.getContent());
    }
}
