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

Commit 2f326309 authored by Hasib Prince's avatar Hasib Prince
Browse files

App Lounge: clean up unncessary logs

parent 0dce291a
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -306,7 +306,7 @@ class MainActivity : AppCompatActivity() {
                    statsManager.getFreeBytes(StorageManager.UUID_DEFAULT)
                }
            } catch (e: Exception) {
                Log.e(TAG, "calculateAvailableDiskSpace: ${e.stackTraceToString()}")
                Timber.e( "calculateAvailableDiskSpace: ${e.stackTraceToString()}")
                getAvailableInternalMemorySize()
            }
        } else {
+1 −4
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ import foundation.e.apps.api.exodus.models.AppPrivacyInfo
import foundation.e.apps.api.exodus.repositories.IAppPrivacyInfoRepository
import foundation.e.apps.api.fused.data.FusedApp
import foundation.e.apps.utils.modules.CommonUtilsModule.LIST_OF_NULL
import timber.log.Timber
import javax.inject.Inject
import kotlin.math.ceil
import kotlin.math.round
@@ -88,10 +89,6 @@ class PrivacyInfoViewModel @Inject constructor(
        val calculatePermissionsScore = calculatePermissionsScore(
            countAndroidPermissions(fusedApp)
        )
        Log.d(
            "PrivacyInfoViewModel",
            "calculatePrivacyScore: ${fusedApp.name}: privacyScore: $calculateTrackersScore permissionScore: $calculatePermissionsScore noOfPermission: ${fusedApp.perms.size}"
        )
        return calculateTrackersScore + calculatePermissionsScore
    }

+3 −12
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import timber.log.Timber
import java.io.File
import javax.inject.Inject
import javax.inject.Named
@@ -79,22 +80,12 @@ class DownloadManager @Inject constructor(
                        cursor.getLong(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_TOTAL_SIZE_BYTES))
                    val bytesDownloadedSoFar =
                        cursor.getLong(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_BYTES_DOWNLOADED_SO_FAR))
                    Log.d(
                        "DownloadManager",
                        "checkDownloadProcess: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status"
                    )
                    if (status == DownloadManager.STATUS_FAILED) {
                        Log.d(
                            "DownloadManager",
                            "Download Failed: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status"
                        )
                        Timber.d("Download Failed: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status")
                        isDownloading = false
                        downloadCompleted?.invoke(false, filePath)
                    } else if (status == DownloadManager.STATUS_SUCCESSFUL) {
                        Log.d(
                            "DownloadManager",
                            "Download Successful: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status"
                        )
                        Timber.d("Download Successful: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status")
                        isDownloading = false
                        downloadCompleted?.invoke(true, filePath)
                    }
+3 −2
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ import okhttp3.Request
import okhttp3.RequestBody
import okhttp3.RequestBody.Companion.toRequestBody
import okhttp3.Response
import timber.log.Timber
import java.io.IOException
import java.net.SocketTimeoutException
import java.net.UnknownHostException
@@ -137,7 +138,7 @@ class GPlayHttpClient @Inject constructor(
            )
            .method(GET, null)
            .build()
        Log.d("get auth request", request.toString())
        Timber.d("get auth request", request.toString())
        return processRequest(request)
    }

@@ -169,7 +170,7 @@ class GPlayHttpClient @Inject constructor(
    }

    private fun handleExceptionOnGooglePlayRequest(e: Exception): PlayResponse {
        Log.e(TAG, "processRequest: ${e.localizedMessage}")
        Timber.e( "processRequest: ${e.localizedMessage}")
        return PlayResponse()
    }

+2 −4
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import timber.log.Timber
import javax.inject.Inject
import javax.inject.Singleton

@@ -58,10 +59,7 @@ class DownloadManagerUtils @Inject constructor(
                    fusedDownload.downloadIdMap[downloadId] = true
                    fusedManagerRepository.updateFusedDownload(fusedDownload)
                    val downloaded = fusedDownload.downloadIdMap.values.filter { it }.size
                    Log.d(
                        TAG,
                        "===> updateDownloadStatus: ${fusedDownload.name}: $downloadId: $downloaded/${fusedDownload.downloadIdMap.size} "
                    )
                    Timber.d("===> updateDownloadStatus: ${fusedDownload.name}: $downloadId: $downloaded/${fusedDownload.downloadIdMap.size}")
                    if (downloaded == fusedDownload.downloadIdMap.size) {
                        fusedManagerRepository.moveOBBFileToOBBDirectory(fusedDownload)
                        fusedDownload.status = Status.DOWNLOADED
Loading