удаление отладочной печати сравнения и не только

This commit is contained in:
2024-07-22 00:57:05 +03:00
parent 3374c9783b
commit 53ad5e637f
76 changed files with 78 additions and 328 deletions

View File

@@ -67,7 +67,6 @@ public abstract class RepositoryServer<D extends Database> {
}
protected Thread interruptThread = new InterruptThread(10000,
() -> {
System.out.println("INTERRUPT FILE FOUND");
System.exit(0);
return null;
});
@@ -77,7 +76,6 @@ public abstract class RepositoryServer<D extends Database> {
Log = new FileWriter("Log.txt", true);
String dmessage = Utils.Brackets("SESSION -> ") + new Date() +
" " + message;
System.out.println(dmessage);
Log.write(dmessage + "\n");
Log.close();
} catch (Exception ex) {
@@ -90,7 +88,6 @@ public abstract class RepositoryServer<D extends Database> {
public void Email(EmailMessage message_in, File... directAttachements) throws Exception {
checkTargets(message_in);
Thread thread = new Thread(() -> {
System.out.println("EMAIL THREAD STARTED");
try {
Properties props = new Properties();
props.put("mail.smtp.host", Global.properties.SMTPHost);
@@ -122,7 +119,6 @@ public abstract class RepositoryServer<D extends Database> {
}
});
for (String target : targets_) {
System.out.println("target=" + target);
boolean done = false;
int attempts = 5;
while (!done && (attempts > 0)) {
@@ -153,7 +149,6 @@ public abstract class RepositoryServer<D extends Database> {
}
message.setContent(multipart);
Transport.send(message);
System.out.println("message sent");
done = true;
} catch (Exception ex) {
System.out.println("Исключение во время отправки сообщения абоненту " + Utils.Brackets(target));
@@ -168,7 +163,6 @@ public abstract class RepositoryServer<D extends Database> {
System.out.println("Исключение во время выполнения рассылки.");
ex.printStackTrace();
}
System.out.println("EMAIL THREAD ENDED");
});
thread.start();
}