Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Update logging mechanism to not log sources #355

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

digeff
Copy link
Contributor

@digeff digeff commented Sep 18, 2018

Update logging mechanism to not log sources

@roblourens
Copy link
Member

Can you file an issue and include more details about what you are trying to do and why? Even though this is a relatively simple change please don't make me or other contributors reverse engineer the intent of this from the diff.

public sendResponse(response: DebugProtocol.Response): void {
const originalLogVerbose = logger.verbose;
try {
logger.verbose = textToLog => {
Copy link
Member

Choose a reason for hiding this comment

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

Hm, what would be a better way to allow customizing the logged message?

Maybe the logger could call a method on DebugSession that formats the string for logging, and it can be overridden here?

Copy link
Member

Choose a reason for hiding this comment

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

I filed microsoft/vscode-debugadapter-node#201 on myself to follow up.

@roblourens roblourens added this to the September 2018 milestone Sep 19, 2018
@roblourens roblourens merged commit 8f8724f into microsoft:master Sep 19, 2018
@digeff digeff deleted the dont_log_sources branch September 19, 2018 17:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants