mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
test: e2e test for client.ServiceLogs
This commit is contained in:
1 parent
1e6aaf451e
commit
4fa30ab8cb
3 files changed
+120
-7
No files matched your search
@@ -94,6 +94,12 @@ func (cli *Client) ContainerLogs(
|
||||
Since: opts.Since,
|
||||
Until: opts.Until,
|
||||
}
|
||||
if !opts.Follow && opts.Tail == 0 {
|
||||
// If not following and tail is 0, set tail to -1 to return all logs.
|
||||
// Otherwise, no logs will be returned at all.
|
||||
req.Tail = -1
|
||||
}
|
||||
|
||||
stream, err := cli.Docker.GRPCClient.ContainerLogs(proxyCtx, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user