Skip to content

Commit bbb7067

Browse files
authored
more verbose logs in jni (#333)
1 parent 2e89994 commit bbb7067

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sherpa-ncnn/jni/jni.cc

+2
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ SHERPA_EXTERN_C
285285
JNIEXPORT jlong JNICALL Java_com_k2fsa_sherpa_ncnn_SherpaNcnn_newFromFile(
286286
JNIEnv *env, jobject /*obj*/, jobject _config) {
287287
sherpa_ncnn::RecognizerConfig config = sherpa_ncnn::ParseConfig(env, _config);
288+
NCNN_LOGE("%s", config.ToString().c_str());
288289
auto model = new sherpa_ncnn::SherpaNcnn(config);
289290

290291
return (jlong)model;
@@ -301,6 +302,7 @@ JNIEXPORT jlong JNICALL Java_com_k2fsa_sherpa_ncnn_SherpaNcnn_newFromAsset(
301302
#endif
302303

303304
sherpa_ncnn::RecognizerConfig config = sherpa_ncnn::ParseConfig(env, _config);
305+
NCNN_LOGE("%s", config.ToString().c_str());
304306
auto model = new sherpa_ncnn::SherpaNcnn(
305307
#if __ANDROID_API__ >= 9
306308
mgr,

0 commit comments

Comments
 (0)