Removes logs

This commit is contained in:
Vitor Pamplona 2024-10-30 17:55:35 -04:00
parent ae530ed813
commit 060a242a0f
2 changed files with 3 additions and 8 deletions

View File

@ -567,15 +567,12 @@ class Account(
location: Location?,
): LiveFollowList? =
if (listName == GLOBAL_FOLLOWS) {
println("AABBCC combinePeopleList $listName Global $listName")
null
} else if (listName == KIND3_FOLLOWS) {
println("AABBCC combinePeopleList $listName Kind3 $kind3")
kind3
} else if (listName == AROUND_ME) {
val hash = location?.toGeoHash(com.vitorpamplona.amethyst.ui.actions.GeohashPrecision.KM_5_X_5.digits)
if (hash != null) {
println("AABBCC combinePeopleList AROUND ME Started $listName Kind3 $kind3")
// 2 neighbors deep = 25x25km
val hashes =
listOf(hash.toString()) +
@ -584,8 +581,6 @@ class Account(
.flatten()
.distinct()
println("AABBCC combinePeopleList AROUND ME Finished $listName Kind3 $kind3")
LiveFollowList(
authorsPlusMe = setOf(signer.pubKey),
geotags = hashes.toSet(),
@ -595,7 +590,6 @@ class Account(
}
} else {
val peopleList = noteState.note.event as? GeneralListEvent
println("AABBCC combinePeopleList $listName General List ${noteState.note.idHex}")
if (peopleList != null) {
waitToDecrypt(peopleList) ?: LiveFollowList(authorsPlusMe = setOf(signer.pubKey))
} else {

View File

@ -27,6 +27,7 @@ import android.location.Location
import android.location.LocationListener
import android.location.LocationManager
import android.os.Looper
import android.util.Log
import android.util.LruCache
import com.fonfon.kgeohash.toGeoHash
import com.vitorpamplona.amethyst.service.LocationState.Companion.MIN_DISTANCE
@ -64,7 +65,7 @@ class LocationFlow(
override fun onProviderDisabled(provider: String) {}
}
println("AABBCC LocationState Start")
Log.d("Location Service", "LocationState Start")
locationManager.requestLocationUpdates(
LocationManager.NETWORK_PROVIDER,
minTimeMs,
@ -75,7 +76,7 @@ class LocationFlow(
awaitClose {
locationManager.removeUpdates(locationCallback)
println("AABBCC LocationState Stop")
Log.d("Location Service", "LocationState Stop")
}
}
}