Skip to content

Commit

Permalink
Replaced log4j usage with commons-io, see #773 (reply in thread)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Jan 8, 2024
1 parent c480b35 commit b46f5fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions planetiler-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@
<artifactId>geopackage</artifactId>
<version>${geopackage.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.logging.log4j.core.util.CloseShieldOutputStream;
import org.apache.commons.io.output.CloseShieldOutputStream;

/**
* Base archive for all kinds of simple file streams. This is primarily useful when the file is a named pipe. In that
Expand Down Expand Up @@ -95,7 +95,7 @@ protected final OutputStream getPrimaryOutputStream() {
* the outputstream of the first writer must be closed by the archive and not the tile writer
* since the primary stream can be used to send meta data, as well
*/
return new CloseShieldOutputStream(primaryOutputStream);
return CloseShieldOutputStream.wrap(primaryOutputStream);
}

@FunctionalInterface
Expand Down

0 comments on commit b46f5fd

Please sign in to comment.