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

Commit

Permalink
Do not print log if msg is null (#1838)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darin726 authored and YorkShen committed Nov 28, 2018
1 parent 6913470 commit dcc7ba6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ public static void renderPerformanceLog(String type, long time) {
}

private static void log(String tag, String msg, LogLevel level){
if(msg != null && tag != null && sLogWatcher !=null){
if(msg == null || tag == null || level == null)
return;

if(sLogWatcher !=null){
sLogWatcher.onLog(level.getName(), tag, msg);
}

Expand Down

0 comments on commit dcc7ba6

Please sign in to comment.