File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
src/main/java/com/github/dockerjava Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1919 * @param tail
2020 * - `all` or `<number>`, Output specified number of lines at the end of logs
2121 * @param since
22- * - UNIX timestamp (integer) to filter logs. Specifying a timestamp will only output log-entries since that timestamp. Default: 0 (unfiltered)
22+ * - UNIX timestamp (integer) to filter logs. Specifying a timestamp will only output log-entries since that
23+ * timestamp. Default: 0 (unfiltered)
2324 */
2425public interface LogContainerCmd extends AsyncDockerCmd <LogContainerCmd , Frame > {
2526
Original file line number Diff line number Diff line change 1919 * @param tail
2020 * - `all` or `<number>`, Output specified number of lines at the end of logs
2121 * @param since
22- * - UNIX timestamp (integer) to filter logs. Specifying a timestamp will only output log-entries since that timestamp. Default: 0 (unfiltered)
22+ * - UNIX timestamp (integer) to filter logs. Specifying a timestamp will only output log-entries since that
23+ * timestamp. Default: 0 (unfiltered)
2324 */
2425public class LogContainerCmdImpl extends AbstrAsyncDockerCmd <LogContainerCmd , Frame > implements LogContainerCmd {
2526
@@ -67,7 +68,9 @@ public boolean hasStderrEnabled() {
6768 }
6869
6970 @ Override
70- public int getSince () {return since ; }
71+ public int getSince () {
72+ return since ;
73+ }
7174
7275 @ Override
7376 public LogContainerCmd withContainerId (String containerId ) {
@@ -141,8 +144,7 @@ public LogContainerCmd withSince(int since) {
141144 @ Override
142145 public String toString () {
143146 return new StringBuilder ("logs " ).append (followStream ? "--follow=true" : "" )
144- .append (timestamps ? "--timestamps=true" : "" )
145- .append (since > 0 ? "--since=" + since : "" )
147+ .append (timestamps ? "--timestamps=true" : "" ).append (since > 0 ? "--since=" + since : "" )
146148 .append (containerId ).toString ();
147149 }
148150
You can’t perform that action at this time.
0 commit comments