* remove annoying logging

This commit is contained in:
Reinhard Pointner 2012-06-01 02:31:17 +00:00
parent c40c53c53c
commit be08a2a050
1 changed files with 20 additions and 25 deletions

View File

@ -13,8 +13,6 @@ import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Torrent {
@ -38,16 +36,13 @@ public class Torrent {
public Torrent(Map<?, ?> torrentMap) {
Charset charset = Charset.forName("UTF-8");
encoding = decodeString(torrentMap.get("encoding"), charset);
try {
charset = Charset.forName(encoding);
} catch (IllegalArgumentException e) {
// invalid encoding, just keep using UTF-8
Logger.getLogger(getClass().getName()).log(Level.WARNING, "Invalid encoding: " + encoding);
}
createdBy = decodeString(torrentMap.get("created by"), charset);