ソースを参照

Beim Versuch eine Connection aufzubauen zu einem OPS Server der nicht an ist, kommt jetzt keine Exception mehr sondern es passiert einfach gar nichts mehr bzw. LOG wird geschrieben.

master
コミット
da9865f8d3
1個のファイルの変更6行の追加2行の削除
  1. +6
    -2
      src/main/java/de/uniluebeck/mi/projmi6/hapi/HL7Sender.java

+ 6
- 2
src/main/java/de/uniluebeck/mi/projmi6/hapi/HL7Sender.java ファイルの表示

@@ -17,6 +17,7 @@ import de.uniluebeck.mi.projmi6.model.Diagnose;
import de.uniluebeck.mi.projmi6.model.Fall;
import de.uniluebeck.mi.projmi6.model.HL7LogEntry;
import de.uniluebeck.mi.projmi6.model.Patient;
import org.slf4j.LoggerFactory;

import java.io.BufferedWriter;
import java.io.File;
@@ -123,7 +124,10 @@ public class HL7Sender {
try {
connection = context.newClient(Main.OPS_IP, port, false);
} catch (HL7Exception e) {
e.printStackTrace();
// e.printStackTrace();
LoggerFactory.getLogger(HL7Sender.class).warn("Konnte aus irgendeinem Grund keine HL7 Nachricht senden. OPS Server down?");
server.stop();
return;
}

// The initiator is used to transmit unsolicited messages
@@ -142,7 +146,7 @@ public class HL7Sender {
Thread.sleep(5000);
}
} catch (HL7Exception | LLPException | IOException | InterruptedException e) {
e.printStackTrace();
// e.printStackTrace();
}

HL7LogEntry responseEntry = new HL7LogEntry();


読み込み中…
キャンセル
保存