From: David ‘Bombe’ Roden Date: Wed, 5 Mar 2014 20:22:52 +0000 (+0100) Subject: Include Sone ID in downloader thread name. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7fb49938b9198110c34bcc600c545bfa91acf6f2;p=Sone.git Include Sone ID in downloader thread name. --- diff --git a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java index 93580a3..8766485 100644 --- a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java +++ b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java @@ -17,6 +17,7 @@ package net.pterodactylus.sone.core; +import static java.lang.String.format; import static net.pterodactylus.sone.data.Sone.TO_FREENET_URI; import java.net.MalformedURLException; @@ -380,7 +381,7 @@ public class FreenetInterface { public void run() { soneDownloader.fetchSone(sone); } - }, "Sone Downloader").start(); + }, format("Sone Downloader for %s", sone.getId())).start(); } }