Skip to content

Commit

Permalink
chore(website): Use logger logs instead of print to fix deploy action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayfri committed Mar 30, 2024
1 parent 698df10 commit d8c249f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions website/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import com.varabyte.kobweb.gradle.application.util.configAsKobwebApplication
import com.varabyte.kobwebx.gradle.markdown.children
import com.varabyte.kobwebx.gradle.markdown.yamlStringToKotlinString
import kotlinx.html.link
import kotlinx.html.script
import kotlinx.html.unsafe
import org.commonmark.ext.front.matter.YamlFrontMatterBlock
import org.commonmark.ext.front.matter.YamlFrontMatterVisitor
import org.commonmark.node.AbstractVisitor
import org.commonmark.node.CustomBlock
import org.commonmark.node.Text
import kotlinx.html.link
import kotlinx.html.script
import kotlinx.html.unsafe

plugins {
kotlin("multiplatform")
Expand Down Expand Up @@ -144,7 +144,7 @@ val generateDocSourceTask = task("generateDocSource") {
val routeOverride = fm["routeOverride"]?.firstOrNull()

if (title == null || desc == null || dateCreated == null || dateModified == null || navTitle == null || routeOverride == null) {
println("Skipping '${docArticle.name}', missing required fields in front matter of ${docArticle.name}: ${requiredFields.filter { fm[it] == null }}")
logger.warn("Skipping '${docArticle.name}', missing required fields in front matter of ${docArticle.name}: ${requiredFields.filter { fm[it] == null }}")
return@forEach
}

Expand Down Expand Up @@ -205,13 +205,13 @@ val generateDocSourceTask = task("generateDocSource") {
| ),
""".trimMargin()
)
println("Generated entry for ${entry.file.name}")
logger.info("Generated entry for ${entry.file.name}")
}

appendLine(")")
})

println("Generated $absolutePath")
logger.info("Generated $absolutePath")
}
}

Expand Down

0 comments on commit d8c249f

Please sign in to comment.