Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9dc05508 authored by Hasib Prince's avatar Hasib Prince Committed by Sayantan Roychowdhury
Browse files

some logs are converted to info level

parent e12e7aea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ class DownloadManagerBR : BroadcastReceiver() {
        val action = intent?.action
        if (context != null && action != null) {
            val id = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, 0)
            Timber.d("onReceive: DownloadBR $action $id")
            Timber.i("onReceive: DownloadBR $action $id")
            when (action) {
                DownloadManager.ACTION_DOWNLOAD_COMPLETE -> {
                    downloadedList.add(id)
+3 −3
Original line number Diff line number Diff line
@@ -127,11 +127,11 @@ class FusedManagerImpl @Inject constructor(

                if (list.size != 0) {
                    try {
                        Timber.d("installApp: STARTED ${fusedDownload.name} ${list.size}")
                        Timber.i("installApp: STARTED ${fusedDownload.name} ${list.size}")
                        pkgManagerModule.installApplication(list, fusedDownload.packageName)
                        Timber.d("installApp: ENDED ${fusedDownload.name} ${list.size}")
                        Timber.i("installApp: ENDED ${fusedDownload.name} ${list.size}")
                    } catch (e: Exception) {
                        Timber.d(">>> installApp app failed ")
                        Timber.i(">>> installApp app failed ")
                        installationIssue(fusedDownload)
                        throw e
                    }
+5 −5
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ class InstallAppWorker @AssistedInject constructor(
            Timber.d("Fused download name $fusedDownloadString")

            fusedDownload = databaseRepository.getDownloadById(fusedDownloadString)
            Timber.d(">>> dowork started for Fused download name " + fusedDownload?.name + " " + fusedDownloadString)
            Timber.i(">>> dowork started for Fused download name " + fusedDownload?.name + " " + fusedDownloadString)
            fusedDownload?.let {
                isItUpdateWork = params.inputData.getBoolean(IS_UPDATE_WORK, false) &&
                    packageManagerModule.isInstalled(it.packageName)
@@ -126,7 +126,7 @@ class InstallAppWorker @AssistedInject constructor(
                fusedManagerRepository.installationIssue(it)
            }
        } finally {
            Timber.d("doWork: RESULT SUCCESS: ${fusedDownload?.name}")
            Timber.i("doWork: RESULT SUCCESS: ${fusedDownload?.name}")
            return Result.success()
        }
    }
@@ -187,7 +187,7 @@ class InstallAppWorker @AssistedInject constructor(
        fusedDownload: FusedDownload
    ) {
        fusedManagerRepository.downloadApp(fusedDownload)
        Timber.d("===> doWork: Download started ${fusedDownload.name} ${fusedDownload.status}")
        Timber.i("===> doWork: Download started ${fusedDownload.name} ${fusedDownload.status}")
        isDownloading = true
        tickerFlow(3.seconds)
            .onEach {
@@ -254,11 +254,11 @@ class InstallAppWorker @AssistedInject constructor(
                fusedManagerRepository.updateDownloadStatus(fusedDownload, Status.INSTALLING)
            }
            Status.INSTALLING -> {
                Timber.d("===> doWork: Installing ${fusedDownload.name} ${fusedDownload.status}")
                Timber.i("===> doWork: Installing ${fusedDownload.name} ${fusedDownload.status}")
            }
            Status.INSTALLED, Status.INSTALLATION_ISSUE -> {
                finishInstallation(fusedDownload)
                Timber.d("===> doWork: Installed/Failed: ${fusedDownload.name} ${fusedDownload.status}")
                Timber.i("===> doWork: Installed/Failed: ${fusedDownload.name} ${fusedDownload.status}")
            }
            else -> {
                finishInstallation(fusedDownload)
+2 −1
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@ class UpdatesWorker @AssistedInject constructor(
            checkForUpdates()
            Result.success()
        } catch (e: Throwable) {
            Timber.e(e)
            Result.failure()
        } finally {
            if (shouldShowNotification && automaticInstallEnabled) {
@@ -237,7 +238,7 @@ class UpdatesWorker @AssistedInject constructor(
            fusedManagerRepository.updateAwaiting(fusedDownload)
            Timber.d("startUpdateProcess: Enqueued for update: ${fusedDownload.name} ${fusedDownload.id} ${fusedDownload.status}")
            InstallWorkManager.enqueueWork(fusedDownload, true)
            Timber.d(">>> startUpdateProcess: " + fusedDownload.name)
            Timber.i("startUpdateProcess: " + fusedDownload.name)
        }
    }