From 1a3ae518dc7589941e2fec9ce5a13e67e70bdb18 Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Sat, 14 Oct 2023 20:41:12 +0800 Subject: [PATCH] Optimize log in FatWebApiApplication --- src/main/kotlin/top/fatweb/api/FatWebApiApplication.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/top/fatweb/api/FatWebApiApplication.kt b/src/main/kotlin/top/fatweb/api/FatWebApiApplication.kt index a2d2e01..485fead 100644 --- a/src/main/kotlin/top/fatweb/api/FatWebApiApplication.kt +++ b/src/main/kotlin/top/fatweb/api/FatWebApiApplication.kt @@ -24,7 +24,7 @@ fun main(args: Array) { if (File("application-config.yml").exists() || File("data/application-config.yml").exists()) { runApplication(*args) } else { - logger.warn("File ‘application.yml’ cannot be found in the running path. The configuration file template 'application.example.yml' has been created in directory 'data'. Please change the configuration file content, rename it to 'application.yml', and then restart the server.") + logger.warn("File 'application.yml' cannot be found in data path. The configuration file template 'application.example.yml' has been created in directory 'data'. Please change the configuration file content, rename it to 'application.yml', and then restart the server.") FatWebApiApplication::class.java.getResource("/application-config-template.yml")?.readText()?.let { File("data/application-config.example.yml").writeText( it.replace(