From bb495ad054d35c4cfa1b4fd59046beefbab69dba Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sun, 10 Apr 2016 20:49:48 -0700 Subject: [PATCH] Better logging of actually downloaded files. --- .../beust/kobalt/maven/aether/ConsoleRepositoryListener.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/ConsoleRepositoryListener.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/ConsoleRepositoryListener.kt index cfc4c5fc..0399f3ae 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/ConsoleRepositoryListener.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/ConsoleRepositoryListener.kt @@ -47,11 +47,13 @@ class ConsoleRepositoryListener @JvmOverloads constructor(out: PrintStream? = nu } override fun artifactDownloading(event: RepositoryEvent?) { - log(1, "Downloading artifact " + event!!.artifact + " from " + event.repository) + log(LOG_LEVEL, "Downloading artifact " + event!!.artifact + " from " + event.repository) } override fun artifactDownloaded(event: RepositoryEvent?) { - log(LOG_LEVEL, "Downloaded artifact " + event!!.artifact + " from " + event.repository) + if (event?.file != null) { + log(1, "Downloaded artifact " + event!!.artifact + " from " + event.repository) + } } override fun artifactResolving(event: RepositoryEvent?) {