Skip to content

Commit 5d55e78

Browse files
committed
Don't throw an error on first config failure
1 parent 4de3b9b commit 5d55e78

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

common/src/main/kotlin/com/lambda/config/Configuration.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ abstract class Configuration : Jsonable {
9292
this@Configuration.info(message)
9393
}
9494
.onFailure {
95-
var message = "Failed to load ${configName.capitalize()} config, loading backup"
96-
LOG.error(message, it)
97-
this@Configuration.logError(message)
95+
var message: String
9896
runCatching { load(backup) }
9997
.onSuccess {
10098
message = "${configName.capitalize()} config loaded from backup"

0 commit comments

Comments
 (0)