Skip to content

Commit

Permalink
Use logger insted of printstacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvanlaatum committed Jul 31, 2016
1 parent fc9b99a commit 44695df
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
import java.net.URLConnection;
import java.text.MessageFormat;
import java.util.StringTokenizer;
import java.util.logging.Level;
import java.util.logging.Logger;

import net.htmlparser.jericho.Source;
import org.apache.commons.lang.StringEscapeUtils;

Expand All @@ -36,6 +39,7 @@
* @author <a href="https://github.com/rahulsom">Rahul Somasunderam</a>
*/
public class CssInliner {
private final static Logger LOG = Logger.getLogger(CssInliner.class.getName());

public static final String CSS_STYLE = "cssstyle";
public static final String STYLE_ATTR = "style";
Expand Down Expand Up @@ -119,7 +123,7 @@ private void inlineImages(Document doc) {

img.attr(IMG_SRC_ATTR, MessageFormat.format("data:{0};base64,{1}", contentType, base64));
} catch (Exception e) {
e.printStackTrace();
LOG.log(Level.WARNING, null, e);
}
}
}
Expand Down

0 comments on commit 44695df

Please sign in to comment.