File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
utils/config-utils/src/main/java/datadog/trace/config/inversion Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,17 @@ public static Map<String, String> getEnvironmentVariables() {
5555 }
5656 }
5757 }
58-
5958 // TODO: Follow-up - Add deprecation handling
60- // if (configSource.getDeprecatedConfigurations().containsKey(key)) {
61- // String warning = "Environment variable " + key + " is deprecated. " +
62- // (configSource.getAliasMapping().containsKey(key)
63- // ? "Please use " + configSource.getAliasMapping().get(key) + " instead."
64- // : configSource.getDeprecatedConfigurations().get(key));
65- // System.err.println(warning);
66- // }
59+ if (configSource .getDeprecatedConfigurations ().containsKey (key )) {
60+ String warning =
61+ "Environment variable "
62+ + key
63+ + " is deprecated. "
64+ + (configSource .getAliasMapping ().containsKey (key )
65+ ? "Please use " + configSource .getAliasMapping ().get (key ) + " instead."
66+ : configSource .getDeprecatedConfigurations ().get (key ));
67+ System .err .println (warning );
68+ }
6769 } else {
6870 configs .put (key , value );
6971 }
You can’t perform that action at this time.
0 commit comments