Skip to content
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

service/dap: change dap error response logging to debug level #2412

Merged
merged 1 commit into from
Apr 2, 2021

Conversation

hyangah
Copy link
Contributor

@hyangah hyangah commented Apr 2, 2021

Error level logging shows up in the users' consoles/terminals
so be more conservative when logging. Move the followings to
Debug logging.

  • DAP error reponses caused by invalid requests.
    They are application level errors and DAP clients should handle them.
  • Errors reported when debugee already exited.

Fixes golang/vscode-go#1392

Error level logging shows up in the users' consoles/terminals
so be more conservative when logging. Move the followings to
Debug logging.

- DAP error reponses caused by invalid requests.
They are application level errors and DAP clients should handle them.
- Errors reported when debugee already exited.

Fixes golang/vscode-go#1392
@hyangah
Copy link
Contributor Author

hyangah commented Apr 2, 2021

cc @polinasok @suzmue

Copy link
Member

@aarzilli aarzilli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@derekparker derekparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@derekparker
Copy link
Member

(re-running the test matrix to root out the flicker)

@derekparker
Copy link
Member

Nevermind, this failure is showing up on other PRs and should be investigated outside of this one.

@derekparker derekparker merged commit 743f243 into go-delve:master Apr 2, 2021
service/dap/server.go Show resolved Hide resolved
service/dap/server.go Show resolved Hide resolved
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.

debug: delve dap logging pollutes Debug Console when running without logOutput/showLog
4 participants