We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f7f27 commit db26c16Copy full SHA for db26c16
logger.go
@@ -25,13 +25,12 @@ func (l Logger) Close() error {
25
26
// GetLogs is used to retrieve a parsable logger object
27
func (s *Shell) GetLogs(ctx context.Context) (Logger, error) {
28
-
29
resp, err := s.Request("log/tail").Send(ctx)
30
if err != nil {
31
- return Logger{}, nil
+ return Logger{}, err
32
}
33
if resp.Error != nil {
34
- resp.Close()
+ resp.Output.Close()
35
return Logger{}, resp.Error
36
37
return newLogger(resp.Output), nil
logger_test.go
@@ -5,7 +5,7 @@ import (
5
"testing"
6
)
7
8
-func Test_Logger(t *testing.T) {
+func TestLogger(t *testing.T) {
9
ctx, cancel := context.WithCancel(context.Background())
10
defer cancel()
11
sh := NewShell(shellUrl)
0 commit comments