Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Add convenience method to run Stats in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tferr committed Aug 13, 2017
1 parent 43e4627 commit 50c0286
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/sholl/math/CommonStats.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ public void setLogger(final Logger logger, final boolean debug) {
logger.setDebug(debug);
}

public void setDebug(boolean debug) {
if (logger != null)
logger.setDebug(debug);
}

@Override
public void setContext(Context context) {
super.setContext(context);
Expand Down

0 comments on commit 50c0286

Please sign in to comment.