Skip to content

Commit

Permalink
tasktracker BizLoggerImpl业务日志级别修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
yuan.cheng committed Nov 23, 2016
1 parent ae55d89 commit eeed907
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,25 @@ public void call() throws Exception {
@Override
public void debug(String msg) {
if (level.ordinal() <= Level.DEBUG.ordinal()) {
sendMsg(msg);
sendMsg(msg, Level.DEBUG);
}
}

@Override
public void info(String msg) {
if (level.ordinal() <= Level.INFO.ordinal()) {
sendMsg(msg);
sendMsg(msg, Level.INFO);
}
}

@Override
public void error(String msg) {
if (level.ordinal() <= Level.ERROR.ordinal()) {
sendMsg(msg);
sendMsg(msg, Level.ERROR);
}
}

private void sendMsg(String msg) {
private void sendMsg(String msg, Level level) {

BizLogSendRequest requestBody = CommandBodyWrapper.wrapper(appContext, new BizLogSendRequest());

Expand Down

0 comments on commit eeed907

Please sign in to comment.