File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
20
* Updated argo-workflows to v3.1.8 to address CVE-2021 -37914
21
21
(https://github.com/argoproj/argo-workflows/security/advisories/GHSA-h563-xh25-x54q ).
22
22
23
+ ### Fixed
24
+ * Duplicated log entries when streaming logs.
25
+
23
26
## [ 0.8.1] - 2021-08-20
24
27
### Fixed
25
28
* Target credential_type only supports 'assumed_role'.
Original file line number Diff line number Diff line change @@ -25,14 +25,13 @@ var logsCmd = &cobra.Command{
25
25
if streamLogs {
26
26
// This is a _very_ simple approach to streaming.
27
27
cobra .CheckErr (apiCl .StreamLogs (context .Background (), os .Stdout , workflowName ))
28
+ } else {
29
+ resp , err := apiCl .GetLogs (context .Background (), workflowName )
30
+ if err != nil {
31
+ cobra .CheckErr (err )
32
+ }
33
+ fmt .Println (strings .Join (resp .Logs , "\n " ))
28
34
}
29
-
30
- resp , err := apiCl .GetLogs (context .Background (), workflowName )
31
- if err != nil {
32
- cobra .CheckErr (err )
33
- }
34
-
35
- fmt .Println (strings .Join (resp .Logs , "\n " ))
36
35
},
37
36
}
38
37
You can’t perform that action at this time.
0 commit comments