Skip to content

Commit

Permalink
Merge pull request #3110 from guardian/sihil/warn-properties-config
Browse files Browse the repository at this point in the history
Log warning if a deprecated file is used
  • Loading branch information
sihil authored Jan 19, 2021
2 parents 481f492 + 968bec4 commit b0f78e2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ object GridConfigLoader extends StrictLogging {
private def loadConfiguration(file: File): Configuration = {
if (file.exists) {
logger.info(s"Loading config from $file")
if (file.getPath.endsWith(".properties")) {
logger.warn(s"Configuring the Grid with Java properties files is deprecated as of #3011, please switch to .conf files. See #3037 for a conversion utility.")
}
Configuration(ConfigFactory.parseFile(file))
} else {
logger.info(s"Skipping config file $file as it doesn't exist")
Expand Down

0 comments on commit b0f78e2

Please sign in to comment.