1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

Replace printStackTrace() with call to Logger

This commit is contained in:
Florian Schmaus 2014-04-23 09:37:16 +02:00
parent cf6076ce43
commit 5b8fd51345
2 changed files with 12 additions and 5 deletions

View file

@ -23,6 +23,8 @@ import java.io.StringReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jivesoftware.smack.packet.RosterPacket;
import org.jivesoftware.smack.packet.RosterPacket.Item;
@ -47,6 +49,7 @@ public class DirectoryRosterStore implements RosterStore {
private static final String ENTRY_PREFIX = "entry-";
private static final String VERSION_FILE_NAME = "__version__";
private static final String STORE_ID = "DEFAULT_ROSTER_STORE";
private static final Logger LOGGER = Logger.getLogger(DirectoryRosterStore.class.getName());
private static final FileFilter rosterDirFilter = new FileFilter() {
@ -235,13 +238,13 @@ public class DirectoryRosterStore implements RosterStore {
}
}
catch (IOException e) {
e.printStackTrace();;
LOGGER.log(Level.SEVERE, "readEntry()", e);
return null;
}
catch (XmlPullParserException e) {
log("Invalid group entry in store entry file "
+ file);
e.printStackTrace();
LOGGER.log(Level.SEVERE, "readEntry()", e);
return null;
}