mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
test: e2e test for client.ServiceLogs
This commit is contained in:
@@ -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