add a log statement for infohash parsing

pull/53/head
Zlatin Balevsky 2020-09-12 14:37:54 +01:00
parent 3af6ee3bce
commit 253603cac7
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 4 additions and 0 deletions

View File

@ -9,9 +9,11 @@ import com.muwire.core.Persona
import com.muwire.core.files.FileHasher
import com.muwire.core.util.DataUtil
import groovy.util.logging.Log
import net.i2p.data.Base64
import net.i2p.data.Destination
@Log
class ResultsParser {
public static UIResultEvent parse(Persona p, UUID uuid, def json) throws InvalidSearchResultException {
if (json.type != "Result")
@ -103,6 +105,8 @@ class ResultsParser {
int certificates = 0
if (json.certificates != null)
certificates = json.certificates
log.fine("Received result from ${p.getHumanReadableName()} name \"$name\" infoHash:\"${json.infohash}\"")
return new UIResultEvent( sender : p,
name : name,