Skip to content

Commit

Permalink
Made console logging flag in ZooCompareDb public and default to 'true'
Browse files Browse the repository at this point in the history
  • Loading branch information
tzaeschke committed May 26, 2017
1 parent ee9d716 commit 558f08b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/zoodb/tools/ZooCompareDb.java
Expand Up @@ -38,7 +38,7 @@

public class ZooCompareDb {

private static boolean logToConsole = false;
public static boolean logToConsole = true;
private static StringBuilder out;

public static void main(String[] args) {
Expand Down Expand Up @@ -250,4 +250,5 @@ private static void log(String s) {
out.append(s + '\n');
}
}

}
2 changes: 2 additions & 0 deletions tst/org/zoodb/test/jdo/Test_015_DatabaseComparison.java
Expand Up @@ -51,10 +51,12 @@ public class Test_015_DatabaseComparison {
public void before() {
TestTools.createDb();
TestTools.createDb(DB2);
ZooCompareDb.logToConsole = false;
}

@After
public void after() {
ZooCompareDb.logToConsole = true;
TestTools.closePM();
TestTools.removeDb();
TestTools.removeDb(DB2);
Expand Down

0 comments on commit 558f08b

Please sign in to comment.