From 7fb49938b9198110c34bcc600c545bfa91acf6f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 5 Mar 2014 21:22:52 +0100 Subject: [PATCH] Include Sone ID in downloader thread name. --- src/main/java/net/pterodactylus/sone/core/FreenetInterface.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } } -- 2.7.4