Skip to content

Commit

Permalink
Removes logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Oct 30, 2024
1 parent ae530ed commit 060a242
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) +
Expand All @@ -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(),
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -75,7 +76,7 @@ class LocationFlow(

awaitClose {
locationManager.removeUpdates(locationCallback)
println("AABBCC LocationState Stop")
Log.d("Location Service", "LocationState Stop")
}
}
}
Expand Down

0 comments on commit 060a242

Please sign in to comment.