Reduce log noise
This commit is contained in:
@@ -537,6 +537,7 @@ void NativeMapView::notifyMapChange() {
|
||||
NULL
|
||||
};
|
||||
|
||||
// TODO do this only once per thread?
|
||||
jint ret;
|
||||
JNIEnv* env = nullptr;
|
||||
bool detach = false;
|
||||
@@ -553,7 +554,6 @@ void NativeMapView::notifyMapChange() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
env->CallVoidMethod(obj, on_map_changed_id);
|
||||
if (env->ExceptionCheck()) {
|
||||
env->ExceptionDescribe();
|
||||
|
||||
@@ -7,12 +7,19 @@
|
||||
#define S_(x) S(x)
|
||||
#define S__LINE__ S_(__LINE__)
|
||||
|
||||
#ifdef DEBUG
|
||||
#define LOG_VERBOSE(fmt, args...) __android_log_print(ANDROID_LOG_VERBOSE, __FILE__ ":" S__LINE__, fmt, ##args)
|
||||
#define LOG_DEBUG(fmt, args...) __android_log_print(ANDROID_LOG_DEBUG, __FILE__ ":" S__LINE__, fmt, ##args)
|
||||
#define LOG_ASSERT(cond, ...) ((cond)?(void)0:__android_log_assert(#cond, __FILE__ ":" S__LINE__, NULL))
|
||||
#define LOG_ASSERTMSG(cond, fmt, args...) ((cond)?(void)0:__android_log_assert(#cond, __FILE__ ":" S__LINE__, fmt, ##args))
|
||||
#else
|
||||
#define LOG_VERBOSE(fmt, args...)
|
||||
#define LOG_DEBUG(fmt, args...)
|
||||
#define LOG_ASSERT(cond, ...)
|
||||
#define LOG_ASSERTMSG(cond, fmt, args...)
|
||||
#endif
|
||||
#define LOG_INFO(fmt, args...) __android_log_print(ANDROID_LOG_INFO, __FILE__ ":" S__LINE__, fmt, ##args)
|
||||
#define LOG_WARN(fmt, args...) __android_log_print(ANDROID_LOG_WARN, __FILE__ ":" S__LINE__, fmt, ##args)
|
||||
#define LOG_ERROR(fmt, args...) __android_log_print(ANDROID_LOG_ERROR, __FILE__ ":" S__LINE__, fmt, ##args)
|
||||
#define LOG_ASSERT(cond, ...) ((cond)?(void)0:__android_log_assert(#cond, __FILE__ ":" S__LINE__, NULL))
|
||||
#define LOG_ASSERTMSG(cond, fmt, args...) ((cond)?(void)0:__android_log_assert(#cond, __FILE__ ":" S__LINE__, fmt, ##args))
|
||||
|
||||
#endif // LOG_H
|
||||
|
||||
@@ -29,7 +29,6 @@ import com.arieslabs.assetbridge.Assetbridge;
|
||||
// Custom view that shows a Map
|
||||
// Based on SurfaceView as we use OpenGL ES to render
|
||||
public class MapView extends SurfaceView {
|
||||
// TODO try TextureView
|
||||
|
||||
//
|
||||
// Static members
|
||||
@@ -112,7 +111,7 @@ public class MapView extends SurfaceView {
|
||||
|
||||
// Check if we are in Eclipse UI editor
|
||||
if (isInEditMode()) {
|
||||
// TODO editor does not load properly because
|
||||
// TODO editor does not load properly because we dont implement this
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1142,7 +1141,7 @@ public class MapView extends SurfaceView {
|
||||
// Called via JNI from NativeMapView
|
||||
// Need to update anything that relies on map state
|
||||
protected void onMapChanged() {
|
||||
Log.v(TAG, "onMapChanged");
|
||||
//Log.v(TAG, "onMapChanged");
|
||||
if (mOnMapChangedListener != null) {
|
||||
mOnMapChangedListener.onMapChanged();
|
||||
}
|
||||
|
||||
@@ -384,7 +384,7 @@ class NativeMapView {
|
||||
//
|
||||
|
||||
protected void onMapChanged() {
|
||||
Log.v(TAG, "onMapChanged");
|
||||
//Log.v(TAG, "onMapChanged");
|
||||
mMapView.onMapChanged();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user