Bladeren bron

Chore: remove verbose logs

Kr328 4 jaren geleden
bovenliggende
commit
0f4a46188c
1 gewijzigde bestanden met toevoegingen van 0 en 10 verwijderingen
  1. 0 10
      service/src/main/java/com/github/kr328/clash/service/ProfileWorker.kt

+ 0 - 10
service/src/main/java/com/github/kr328/clash/service/ProfileWorker.kt

@@ -14,7 +14,6 @@ import com.github.kr328.clash.common.compat.pendingIntentFlags
 import com.github.kr328.clash.common.constants.Components
 import com.github.kr328.clash.common.constants.Components
 import com.github.kr328.clash.common.constants.Intents
 import com.github.kr328.clash.common.constants.Intents
 import com.github.kr328.clash.common.id.UndefinedIds
 import com.github.kr328.clash.common.id.UndefinedIds
-import com.github.kr328.clash.common.log.Log
 import com.github.kr328.clash.common.util.setUUID
 import com.github.kr328.clash.common.util.setUUID
 import com.github.kr328.clash.common.util.uuid
 import com.github.kr328.clash.common.util.uuid
 import com.github.kr328.clash.service.data.ImportedDao
 import com.github.kr328.clash.service.data.ImportedDao
@@ -148,17 +147,12 @@ class ProfileWorker : BaseService() {
 
 
         NotificationManagerCompat.from(applicationContext)
         NotificationManagerCompat.from(applicationContext)
             .notify(id, notification)
             .notify(id, notification)
-
-        Log.d("notify processing $name: id = $id")
-
         try {
         try {
             block()
             block()
         } finally {
         } finally {
             withContext(NonCancellable) {
             withContext(NonCancellable) {
                 NotificationManagerCompat.from(applicationContext)
                 NotificationManagerCompat.from(applicationContext)
                     .cancel(id)
                     .cancel(id)
-
-                Log.d("notify processed $name: id = $id")
             }
             }
         }
         }
     }
     }
@@ -190,8 +184,6 @@ class ProfileWorker : BaseService() {
 
 
         NotificationManagerCompat.from(this)
         NotificationManagerCompat.from(this)
             .notify(id, notification)
             .notify(id, notification)
-
-        Log.d("notify completed $name: id = $id")
     }
     }
 
 
     private fun failed(uuid: UUID, name: String, reason: String) {
     private fun failed(uuid: UUID, name: String, reason: String) {
@@ -207,8 +199,6 @@ class ProfileWorker : BaseService() {
 
 
         NotificationManagerCompat.from(this)
         NotificationManagerCompat.from(this)
             .notify(id, notification)
             .notify(id, notification)
-
-        Log.d("notify failed $name: id = $id")
     }
     }
 
 
     companion object {
     companion object {