Skip to content

Commit

Permalink
use a logger rather than System Error
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Mar 9, 2024
1 parent d4949f5 commit 29828f9
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -32,6 +32,7 @@
import org.openscience.cdk.interfaces.IRing;
import org.openscience.cdk.interfaces.IRingSet;
import org.openscience.cdk.ringsearch.RingSearch;
import org.openscience.cdk.tools.LoggingToolFactory;

import java.util.ArrayDeque;
import java.util.ArrayList;
Expand Down Expand Up @@ -100,7 +101,8 @@ private static long getSystemInteger(String key, long val) {
try {
return Long.parseLong(prop);
} catch (NumberFormatException ex) {
System.err.println("Error - Invalid number for system property=" + key);
LoggingToolFactory.createLoggingTool(Cycles.class)
.error("Error - Invalid number for system property=" + key);
}
return val;
}
Expand Down

0 comments on commit 29828f9

Please sign in to comment.