Merge pull request #19494 from gustavotrott/akka-fix-duplicated-code

refactor (akka-apps): Avoid duplicating code
This commit is contained in:
Anton Georgiev 2024-02-05 09:35:24 -05:00 committed by GitHub
commit 98e280c275
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,7 @@ object ClientSettings extends SystemConfiguration {
getConfigPropertyValueByPath(map, path) match {
case Some(configValue: Int) => configValue
case _ =>
logger.debug("Config `{}` not found.", path)
logger.debug(s"Config `$path` with type Integer not found in clientSettings.")
alternativeValue
}
}
@ -65,7 +65,7 @@ object ClientSettings extends SystemConfiguration {
getConfigPropertyValueByPath(map, path) match {
case Some(configValue: String) => configValue
case _ =>
logger.debug("Config `{}` not found.", path)
logger.debug(s"Config `$path` with type String not found in clientSettings.")
alternativeValue
}
}
@ -74,7 +74,7 @@ object ClientSettings extends SystemConfiguration {
getConfigPropertyValueByPath(map, path) match {
case Some(configValue: Boolean) => configValue
case _ =>
logger.debug("Config `{}` not found.", path)
logger.debug(s"Config `$path` with type Boolean found in clientSettings.")
alternativeValue
}
}