Skip to content

Commit

Permalink
Appending default options before adding new params
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Kuzmic committed Jan 9, 2019
1 parent 66f4f42 commit a278d4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/amihaiemil/docker/RtLogs.java
Expand Up @@ -150,6 +150,7 @@ public Reader follow()
@Override
public Logs stdout() throws IOException, UnexpectedResponseException {
final Map<String, String> params = new HashMap<>();
params.putAll(this.options);
params.put("stdout", "true");
params.put("stderr", "false");
return new RtLogs(this.owner, this.client, this.baseUri, params);
Expand All @@ -158,6 +159,7 @@ public Logs stdout() throws IOException, UnexpectedResponseException {
@Override
public Logs stderr() throws IOException, UnexpectedResponseException {
final Map<String, String> params = new HashMap<>();
params.putAll(this.options);
params.put("stdout", "false");
params.put("stderr", "true");
return new RtLogs(this.owner, this.client, this.baseUri, params);
Expand Down

0 comments on commit a278d4e

Please sign in to comment.