Include Sone ID in downloader thread name.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 5 Mar 2014 20:22:52 +0000 (21:22 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 5 Mar 2014 20:22:52 +0000 (21:22 +0100)
src/main/java/net/pterodactylus/sone/core/FreenetInterface.java

index 93580a3..8766485 100644 (file)
@@ -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();
                        }
                }