Skip to content

Commit a687289

Browse files
committed
add deprecated message
1 parent 728d013 commit a687289

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/embulk/output/s3/S3FileOutputPlugin.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ private ClientConfiguration getClientConfiguration(PluginTask task)
194194
// set http proxy
195195
// backward compatibility
196196
if (task.getProxyHost().isPresent()) {
197+
logger.warn("proxy_host is deprecated. use http_proxy.host instead");
197198
if (!task.getHttpProxy().isPresent()) {
198199
ConfigMapper configMapper = CONFIG_MAPPER_FACTORY.createConfigMapper();
199200
ConfigSource configSource = CONFIG_MAPPER_FACTORY.newConfigSource();
@@ -210,6 +211,7 @@ private ClientConfiguration getClientConfiguration(PluginTask task)
210211
}
211212

212213
if (task.getProxyPort().isPresent()) {
214+
logger.warn("proxy_port is deprecated. use http_proxy.port instead");
213215
HttpProxy httpProxy = task.getHttpProxy().get();
214216
if (!httpProxy.getPort().isPresent()) {
215217
httpProxy.setPort(task.getProxyPort());

0 commit comments

Comments
 (0)