Reduced logging

This commit is contained in:
M66B 2020-04-15 13:42:53 +02:00
parent 46bbb96c8c
commit c3040e24d3
3 changed files with 6 additions and 2 deletions

View File

@ -894,7 +894,7 @@ public class FragmentCompose extends FragmentBase {
@Override
public void onError(Exception ex) {
if ("bindService() returned false!".equals(ex.getMessage()))
Log.w("PGP", ex);
Log.i(ex);
else
Log.e("PGP", ex);
}

View File

@ -1263,7 +1263,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
@Override
public void onError(Exception ex) {
if ("bindService() returned false!".equals(ex.getMessage()))
Log.w("PGP", ex);
Log.i("PGP", ex);
else
Log.e("PGP", ex);
}

View File

@ -172,6 +172,10 @@ public class Log {
return android.util.Log.e(TAG, ex + "\n" + android.util.Log.getStackTraceString(ex));
}
public static int i(String prefix, Throwable ex) {
return android.util.Log.i(TAG, prefix + " " + ex + "\n" + android.util.Log.getStackTraceString(ex));
}
public static int w(String prefix, Throwable ex) {
if (BuildConfig.BETA_RELEASE)
try {