Skip to content

Commit

Permalink
Implement log level for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Feb 14, 2024
1 parent ab4831a commit 076fec3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/src/main/cpp/cpp-adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ extern "C" JNIEXPORT void JNICALL Java_com_reactnativemmkv_MmkvModule_nativeInst
jobject clazz,
jlong jsiPtr,
jstring path) {
MMKV::initializeMMKV(jstringToStdString(env, path));
MMKVLogLevel logLevel = DEBUG ? MMKVLogDebug : MMKVLogError;
MMKV::initializeMMKV(jstringToStdString(env, path), logLevel);

auto runtime = reinterpret_cast<jsi::Runtime*>(jsiPtr);
if (runtime) {
Expand Down

0 comments on commit 076fec3

Please sign in to comment.