mirror of https://github.com/M66B/FairEmail.git
Reduced logging
This commit is contained in:
parent
46bbb96c8c
commit
c3040e24d3
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue