Changed the logger to ignore messages it cannot print via jni.