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

Commit

Permalink
* [android] if not debug level then write console log
Browse files Browse the repository at this point in the history
  • Loading branch information
atomtong authored and gurisxie committed Oct 18, 2017
1 parent ac075c7 commit db5b1e0
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ private static void log(String tag, String msg, LogLevel level){
Log.println(level.getPriority(),tag, msg);
}

if(WXEnvironment.isApkDebugable()){
writeConsoleLog(level.getName(), msg);
sendLog(level, msg);
}
// if not debug level then print log
if(WXEnvironment.isApkDebugable() && !level.getName().equals("debug")){
writeConsoleLog(level.getName(), msg);
sendLog(level, msg);
}
}
}

Expand Down

0 comments on commit db5b1e0

Please sign in to comment.