Skip to content

Commit

Permalink
Move logging statement on compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones committed Dec 15, 2023
1 parent cb6b72d commit 2027c8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/scala/com/github/sbt/avro/SbtAvro.scala
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ object SbtAvro extends AutoPlugin {
val avscs = srcDirs.flatMap(d => (d ** AvroAvscFilter).get.map(avsc => new AvroFileRef(d, avsc.relativeTo(d).get.toString)))
val avprs = srcDirs.flatMap(d => (d ** AvroAvrpFilter).get)

log.info(s"Avro compiler $avroCompilerVersion using stringType=$stringType")
recompile(records, target, log, stringType, fieldVisibility, enableDecimalLogicalType, useNamespace, optionalGetters, createSetters, builder)
compileIdls(avdls, target, log, stringType, fieldVisibility, enableDecimalLogicalType, optionalGetters, createSetters)
compileAvscs(avscs, target, log, stringType, fieldVisibility, enableDecimalLogicalType, useNamespace, optionalGetters, createSetters, builder)
Expand Down Expand Up @@ -325,8 +326,6 @@ object SbtAvro extends AutoPlugin {
import sbt.util.CacheStoreFactory
import sbt.util.CacheImplicits._

out.log.info(s"Avro compiler $avroCompilerVersion using stringType=$strType")

val cacheStoreFactory = CacheStoreFactory(out.cacheDirectory / "avro")
val lastCache = { (action: Option[Set[File]] => Set[File]) =>
Tracked.lastOutput[Unit, Set[File]](cacheStoreFactory.make("last-cache")) {
Expand Down

0 comments on commit 2027c8b

Please sign in to comment.