Skip to content

Conversation

@sami-alajrami
Copy link
Contributor

with v2.6.11, adding --debug causes duplicate logging with inconsistent formatting:

$ kosli list flows --debug 

[debug] processing config file [/Users/samialajrami/.kosli.yml]
[debug] using api token from [/Users/samialajrami/.kosli.yml].
2025/02/18 10:59:14 [DEBUG] GET https://app.kosli.com/api/v2/flows/kosli <==== this is duplicate and has a different format
[debug] request made to https://app.kosli.com/api/v2/flows/kosli and got status 200

without the duplicate logging, this is what it looks on a retry call:

$ kosli list flows --debug 

[debug] processing config file [/Users/samialajrami/.kosli.yml]
[debug] using api token from [/Users/samialajrami/.kosli.yml].
Error: Get "http://localhost/api/v2/flows/kosli": GET http://localhost/api/v2/flows/kosli giving up after 4 attempt(s)

which indicates that 4 attempts happened and failed

@sami-alajrami sami-alajrami enabled auto-merge (squash) February 18, 2025 10:21
@sami-alajrami sami-alajrami merged commit 9ed8b0d into main Feb 18, 2025
6 checks passed
@sami-alajrami sami-alajrami deleted the avoid-duplicate-debug-logs branch February 18, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants