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

Do not print log if msg is null #1838

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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