android:fix log output format error

This commit is contained in:
pengfei.zhou 2021-05-20 18:25:16 +08:00 committed by osborn
parent 053e06ff2e
commit 7570278352

View File

@ -291,13 +291,13 @@ public class DoricJSEngine implements Handler.Callback, DoricTimerExtension.Time
public void onLog(int type, String message) { public void onLog(int type, String message) {
switch (type) { switch (type) {
case Log.ERROR: case Log.ERROR:
DoricLog.suffix_e("_js", message); DoricLog.suffix_e("_js", "%s", message);
break; break;
case Log.WARN: case Log.WARN:
DoricLog.suffix_w("_js", message); DoricLog.suffix_w("_js", "%s", message);
break; break;
default: default:
DoricLog.suffix_d("_js", message); DoricLog.suffix_d("_js", "%s", message);
break; break;
} }
} }