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) {
switch (type) {
case Log.ERROR:
DoricLog.suffix_e("_js", message);
DoricLog.suffix_e("_js", "%s", message);
break;
case Log.WARN:
DoricLog.suffix_w("_js", message);
DoricLog.suffix_w("_js", "%s", message);
break;
default:
DoricLog.suffix_d("_js", message);
DoricLog.suffix_d("_js", "%s", message);
break;
}
}