From 63208e965bbc75c17ec49441d0b3a8a4a25aef74 Mon Sep 17 00:00:00 2001 From: nkuehnel Date: Tue, 25 Jun 2024 15:37:51 +0200 Subject: [PATCH 1/2] add some logging to NetworkChangeEventsWriter --- .../org/matsim/core/network/io/NetworkChangeEventsWriter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matsim/src/main/java/org/matsim/core/network/io/NetworkChangeEventsWriter.java b/matsim/src/main/java/org/matsim/core/network/io/NetworkChangeEventsWriter.java index b97f3e957d6..57ef2e1e92a 100644 --- a/matsim/src/main/java/org/matsim/core/network/io/NetworkChangeEventsWriter.java +++ b/matsim/src/main/java/org/matsim/core/network/io/NetworkChangeEventsWriter.java @@ -71,6 +71,7 @@ public final class NetworkChangeEventsWriter extends MatsimXmlWriter implements private static final String XSD_LOCATION = "http://www.matsim.org/files/dtd/networkChangeEvents.xsd"; public void write(String file, Collection events) { + log.info("Writing network to file: " + file + "..."); try { openFile(file); super.writeXmlHead(); @@ -119,6 +120,7 @@ public void write(String file, Collection events) { } catch (IOException e) { log.fatal("Error during writing network change events!", e); } + log.info("done."); } private void writeEvent(NetworkChangeEvent event) throws IOException { From 7f245e64d7e793782192ec66f1d45419b560fd64 Mon Sep 17 00:00:00 2001 From: nkuehnel Date: Tue, 25 Jun 2024 15:41:33 +0200 Subject: [PATCH 2/2] correct logging statement --- .../org/matsim/core/network/io/NetworkChangeEventsWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matsim/src/main/java/org/matsim/core/network/io/NetworkChangeEventsWriter.java b/matsim/src/main/java/org/matsim/core/network/io/NetworkChangeEventsWriter.java index 57ef2e1e92a..f824083545a 100644 --- a/matsim/src/main/java/org/matsim/core/network/io/NetworkChangeEventsWriter.java +++ b/matsim/src/main/java/org/matsim/core/network/io/NetworkChangeEventsWriter.java @@ -71,7 +71,7 @@ public final class NetworkChangeEventsWriter extends MatsimXmlWriter implements private static final String XSD_LOCATION = "http://www.matsim.org/files/dtd/networkChangeEvents.xsd"; public void write(String file, Collection events) { - log.info("Writing network to file: " + file + "..."); + log.info("Writing network change events to file: " + file + "..."); try { openFile(file); super.writeXmlHead();