Skip to content

Commit

Permalink
Modify the log level.
Browse files Browse the repository at this point in the history
  • Loading branch information
sinyu890807 committed Aug 29, 2014
1 parent 21c3c0e commit 9a889b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/src/org/litepal/util/LogUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ public final class LogUtil {

public static final int ERROR = 5;

public static final int LEVEL = ERROR;
public static int level = ERROR;

public static void d(String tagName, String message) {
if (LEVEL >= DEBUG) {
if (level <= DEBUG) {
Log.d(tagName, message);
}
}

public static void e(String tagName, Exception e){
if (LEVEL >= ERROR) {
if (level <= ERROR) {
Log.e(tagName, e.getMessage(), e);
}
}
Expand Down

0 comments on commit 9a889b7

Please sign in to comment.