commit 3acc8fe61d70554a8332557ac26bf639a68bce15 Author: iwakeh iwakeh@torproject.org Date: Wed Oct 19 12:25:21 2016 +0200
Logs the served implementation. Implements task-20334. --- .../java/org/torproject/descriptor/DescriptorSourceFactory.java | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/src/main/java/org/torproject/descriptor/DescriptorSourceFactory.java b/src/main/java/org/torproject/descriptor/DescriptorSourceFactory.java index a9d1558..2a58552 100644 --- a/src/main/java/org/torproject/descriptor/DescriptorSourceFactory.java +++ b/src/main/java/org/torproject/descriptor/DescriptorSourceFactory.java @@ -3,6 +3,9 @@
package org.torproject.descriptor;
+import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + /** * Factory for descriptor sources which in turn produce descriptors. * @@ -38,6 +41,9 @@ package org.torproject.descriptor; */ public final class DescriptorSourceFactory {
+ private static Logger log = LoggerFactory.getLogger( + DescriptorSourceFactory.class); + /** * Default implementation of the {@link DescriptorDownloader} * descriptor source. @@ -174,6 +180,7 @@ public final class DescriptorSourceFactory { } object = ClassLoader.getSystemClassLoader().loadClass(clazzName) .newInstance(); + log.info("Serving implementation {} for {}.", clazzName, type); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException ex) { throw new ImplementationNotAccessibleException("Cannot load class "
tor-commits@lists.torproject.org