8000 Clean up excessive logging · passy/android-database-sqlcipher@7ebfba2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ebfba2

Browse files
Clean up excessive logging
1 parent b09c25b commit 7ebfba2

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

jni/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LOCAL_PATH := $(MY_PATH)
55
SQLCIPHER_DIR := $(LOCAL_PATH)/../external/sqlcipher
66
SQLCIPHER_SRC := $(SQLCIPHER_DIR)/sqlite3.c
77

8-
LOCAL_CFLAGS += $(SQLCIPHER_CFLAGS)
8+
LOCAL_CFLAGS += $(SQLCIPHER_CFLAGS) -DLOG_NDEBUG
99
LOCAL_C_INCLUDES := $(SQLCIPHER_DIR) $(LOCAL_PATH)
1010
LOCAL_LDLIBS := -llog -latomic
1111
LOCAL_LDFLAGS += -L$(LOCAL_PATH)/android-libs/$(TARGET_ARCH_ABI) -fuse-ld=bfd

jni/log.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
55
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE,LOG_TAG,__VA_ARGS__)
66
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
7-
//#define LOG_DEBUG(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
87

98
#ifndef LOG
109
#define LOG(priority, tag, ...) \

jni/net_sqlcipher_database_SQLiteDatabase.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ int native_status(JNIEnv* env, jobject object, jint operation, jboolean reset)
157157
void native_key_char(JNIEnv* env, jobject object, jcharArray jKey) {
158158
int rc;
159159
int idx;
160-
LOGI("Entered native_key_char");
161160
sqlite3 *handle = (sqlite3 *)env->GetIntField(object, offset_db_handle);
162161
jchar *key = env->GetCharArrayElements(jKey, 0);
163162
jsize sz = env->GetArrayLength(jKey);

0 commit comments

Comments
 (0)
0