Skip to content

Conversation

@seguins
Copy link
Contributor

@seguins seguins commented Feb 15, 2016

This closes #934

'stdout': stdout and 1 or 0,
'timestamps': timestamps and 1 or 0,
'follow': stream and 1 or 0,
'follow': follow and 1 or 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should set follow=None and do:

'follow': follow if follow is not None else int(stream)

to keep it backwards compatible

@dnephin
Copy link
Contributor

dnephin commented Feb 16, 2016

Looks good, just one consideration for backwards compatibility.

Closes docker#934

Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
@seguins seguins force-pushed the 934-separate-stream-follow-logs branch from a08699e to 71fafd3 Compare February 16, 2016 17:52
@seguins
Copy link
Contributor Author

seguins commented Feb 16, 2016

I have added the backward compatibility and I have created a new unit test for it.

@dnephin
Copy link
Contributor

dnephin commented Feb 16, 2016

LGTM

@shin- shin- added this to the 1.8.0 milestone Feb 16, 2016
@shin-
Copy link
Contributor

shin- commented Feb 25, 2016

LGTM, thanks!

shin- added a commit that referenced this pull request Feb 25, 2016
Separate params stream and follow for logs.
@shin- shin- merged commit cdf6dc8 into docker:master Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

logs() separate param for stream and follow

4 participants