mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-21 18:17:58 +01:00
[openpgp] Remove INFO log sites
INFO log sites should be used sparingly and carefully. Those are a good examples for an unnecessary INFO log sites.
This commit is contained in:
parent
aa49743ef8
commit
64db6e3ebc
3 changed files with 0 additions and 6 deletions
|
@ -27,7 +27,6 @@ import java.io.IOException;
|
||||||
import java.security.InvalidAlgorithmParameterException;
|
import java.security.InvalidAlgorithmParameterException;
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
import java.security.NoSuchProviderException;
|
import java.security.NoSuchProviderException;
|
||||||
import java.util.logging.Level;
|
|
||||||
|
|
||||||
import org.jivesoftware.smack.SmackException;
|
import org.jivesoftware.smack.SmackException;
|
||||||
import org.jivesoftware.smack.XMPPException;
|
import org.jivesoftware.smack.XMPPException;
|
||||||
|
@ -98,7 +97,6 @@ public class OXSecretKeyBackupIntegrationTest extends AbstractOpenPgpIntegration
|
||||||
@AfterClass
|
@AfterClass
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void cleanStore() throws IOException {
|
public static void cleanStore() throws IOException {
|
||||||
LOGGER.log(Level.INFO, "Delete store directories...");
|
|
||||||
org.apache.commons.io.FileUtils.deleteDirectory(afterPath);
|
org.apache.commons.io.FileUtils.deleteDirectory(afterPath);
|
||||||
org.apache.commons.io.FileUtils.deleteDirectory(beforePath);
|
org.apache.commons.io.FileUtils.deleteDirectory(beforePath);
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,6 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.logging.Level;
|
|
||||||
|
|
||||||
import org.jivesoftware.smack.SmackException;
|
import org.jivesoftware.smack.SmackException;
|
||||||
import org.jivesoftware.smack.XMPPException;
|
import org.jivesoftware.smack.XMPPException;
|
||||||
|
@ -104,8 +103,6 @@ public class OXInstantMessagingIntegrationTest extends AbstractOpenPgpIntegratio
|
||||||
public void basicInstantMessagingTest()
|
public void basicInstantMessagingTest()
|
||||||
throws Exception {
|
throws Exception {
|
||||||
|
|
||||||
LOGGER.log(Level.INFO, aliceStorePath.getAbsolutePath() + " " + bobStorePath.getAbsolutePath());
|
|
||||||
|
|
||||||
final SimpleResultSyncPoint bobReceivedMessage = new SimpleResultSyncPoint();
|
final SimpleResultSyncPoint bobReceivedMessage = new SimpleResultSyncPoint();
|
||||||
final String body = "Writing integration tests is an annoying task, but it has to be done, so lets do it!!!";
|
final String body = "Writing integration tests is an annoying task, but it has to be done, so lets do it!!!";
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,6 @@ public class PainlessOpenPgpProvider implements OpenPgpProvider {
|
||||||
|
|
||||||
PGPPublicKeyRingCollection announcedPublicKeys = sender.getAnnouncedPublicKeys();
|
PGPPublicKeyRingCollection announcedPublicKeys = sender.getAnnouncedPublicKeys();
|
||||||
if (announcedPublicKeys == null) {
|
if (announcedPublicKeys == null) {
|
||||||
LOGGER.log(Level.INFO, "Received a message from " + sender.getJid() + " but we have no keys yet. Try fetching them.");
|
|
||||||
try {
|
try {
|
||||||
sender.updateKeys(connection);
|
sender.updateKeys(connection);
|
||||||
announcedPublicKeys = sender.getAnnouncedPublicKeys();
|
announcedPublicKeys = sender.getAnnouncedPublicKeys();
|
||||||
|
|
Loading…
Reference in a new issue