mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Improved logging
This commit is contained in:
parent
45bb31e975
commit
2b54bdde05
3 changed files with 4 additions and 1 deletions
|
@ -78,7 +78,7 @@ public class ApplicationEx extends Application
|
|||
super.onCreate();
|
||||
|
||||
long start = new Date().getTime();
|
||||
EntityLog.log(this, "App create" +
|
||||
Log.i("App create" +
|
||||
" version=" + BuildConfig.VERSION_NAME +
|
||||
" process=" + android.os.Process.myPid());
|
||||
Log.logMemory(this, "App");
|
||||
|
|
|
@ -302,6 +302,7 @@ public abstract class DB extends RoomDatabase {
|
|||
|
||||
public static synchronized DB getInstance(Context context) {
|
||||
if (sInstance == null) {
|
||||
Log.i("Creating database instance");
|
||||
Context acontext = context.getApplicationContext();
|
||||
|
||||
sInstance = migrate(acontext, getBuilder(acontext)).build();
|
||||
|
|
|
@ -270,6 +270,8 @@ public class Log {
|
|||
|
||||
private static void setupBugsnag(final Context context) {
|
||||
try {
|
||||
Log.i("Configuring Bugsnag");
|
||||
|
||||
// https://docs.bugsnag.com/platforms/android/sdk/
|
||||
com.bugsnag.android.Configuration config =
|
||||
new com.bugsnag.android.Configuration("9d2d57476a0614974449a3ec33f2604a");
|
||||
|
|
Loading…
Reference in a new issue