Skip to content

Commit a278d4e

Browse files
author
Boris Kuzmic
committed
Appending default options before adding new params
1 parent 66f4f42 commit a278d4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/amihaiemil/docker/RtLogs.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public Reader follow()
150150
@Override
151151
public Logs stdout() throws IOException, UnexpectedResponseException {
152152
final Map<String, String> params = new HashMap<>();
153+
params.putAll(this.options);
153154
params.put("stdout", "true");
154155
params.put("stderr", "false");
155156
return new RtLogs(this.owner, this.client, this.baseUri, params);
@@ -158,6 +159,7 @@ public Logs stdout() throws IOException, UnexpectedResponseException {
158159
@Override
159160
public Logs stderr() throws IOException, UnexpectedResponseException {
160161
final Map<String, String> params = new HashMap<>();
162+
params.putAll(this.options);
161163
params.put("stdout", "false");
162164
params.put("stderr", "true");
163165
return new RtLogs(this.owner, this.client, this.baseUri, params);

0 commit comments

Comments
 (0)