Merge pull request #19494 from gustavotrott/akka-fix-duplicated-code
refactor (akka-apps): Avoid duplicating code
This commit is contained in:
commit
98e280c275
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user