Skip to content

Commit

Permalink
Log message to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasblum committed Nov 5, 2024
1 parent f6cbe48 commit 1005f1b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class CreateMD5DBFromOracle {
private static final String QUERY = "SELECT MD5 FROM " + USER + ".LOOKUP_MD5 ORDER BY MD5";

void buildDatabase(String url, String password, int fetchSize, File outputDirectory) {
System.out.println(Utilities.getTimeAlt() + ": starting");
System.err.println(Utilities.getTimeAlt() + ": starting");
int proteinCount = 0;
try (BerkeleyDBJE bdbje = new BerkeleyDBJE(outputDirectory)) {
EntityStore store = bdbje.getStore();
Expand All @@ -44,7 +44,7 @@ void buildDatabase(String url, String password, int fetchSize, File outputDirect
store.sync();

String msg = String.format("%s: %,d proteins processed", Utilities.getTimeAlt(), proteinCount);
System.out.println(msg);
System.err.println(msg);
}
}
}
Expand All @@ -55,6 +55,6 @@ void buildDatabase(String url, String password, int fetchSize, File outputDirect
}

String msg = String.format("%s: %,d proteins processed", Utilities.getTimeAlt(), proteinCount);
System.out.println(msg);
System.err.println(msg);
}
}

0 comments on commit 1005f1b

Please sign in to comment.