-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(auto-edits): clean auto-edits output channel #6547
Conversation
this.logger = new Logger(feature) | ||
} | ||
|
||
logDebugIfVerbose(filterLabel: string, text: string, ...args: unknown[]): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@valerybugakov do you think we should remove it and just logDebug them. In case any user faces some issue, they can share the logs with us (since atleast initial string will be present in logDebug
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge it as-is and iterate through follow-up PRs. Moving some of the logs under the verbose flag is the right move. In most cases, non-verbose logs should be sufficient, and enabling verbose logging should be straightforward for users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I will merge it to help myself with local debugging.
|
||
constructor(feature: string) { | ||
super(feature) | ||
this.logger = new Logger(feature) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: extending the logger should be enough; there's no need to create an internal instance of the parent. We can still access its methods from this instance. I'll create a small patch for it.
Context
Clean the output logger for
auto-edits
:auto-edits
might break are enabled only if verbose debugging true.prompt
are shorted similar to autocomplete prompt logs.Logs when verbose enabled for a single
auto-edits
request.Logs without verbose enabled for a single
auto-edits
request.Test plan
cody.debug.version
flag