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

adds options to suppress/customize delve logging; closes #2200 #2203

Merged
merged 2 commits into from
Mar 31, 2019
Merged

adds options to suppress/customize delve logging; closes #2200 #2203

merged 2 commits into from
Mar 31, 2019

Conversation

sbromberger
Copy link
Contributor

This PR addresses #2200 and introduces the following variables:
g:go_debug_log - defaults to 1; set to 0 to suppress logging output
g:go_debug_log_output: defaults to debugger, rpc; set to a string that corresponds to the delve log_output options. Will only be used if go_debug_log is set to 1.

Documentation is also included.

This PR preserves the current behavior through its default settings so should be completely transparent to existing users.

Copy link
Collaborator

@bhcleek bhcleek left a comment

Choose a reason for hiding this comment

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

Thanks got the PR.

g:go_debug_log is redundant with g:go_debug_log_output. Can you please refactor to remove the former?

@sbromberger
Copy link
Contributor Author

Can you please refactor to remove the former?

Sure. Do you mean that if go_debug_log_output is empty, we should disable logging?

@bhcleek
Copy link
Collaborator

bhcleek commented Mar 28, 2019

Yes

@sbromberger
Copy link
Contributor Author

passes tests! 🎉

@bhcleek bhcleek merged commit 94a9279 into fatih:master Mar 31, 2019
bhcleek added a commit that referenced this pull request Mar 31, 2019
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