Skip to content

Commit

Permalink
Review feedback/fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noppej committed Nov 17, 2021
1 parent 854832f commit b84fdc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,19 +332,19 @@ class ProbeRsDebugAdapterTrackerFactory implements DebugAdapterTrackerFactory {
class ProbeRsDebugAdapterTracker implements DebugAdapterTracker {

onWillReceiveMessage(message: any) {
if (probeRsLogLevel === 'Debug') {
if (probeRsLogLevel === 'Debug' || probeRsLogLevel === 'Trace') {
logToConsole("DEBUG: Sending message to debug adapter:\n" + JSON.stringify(message, null, 2));
}
}

onDidSendMessage(message: any) {
if (probeRsLogLevel === 'Debug') {
if (probeRsLogLevel === 'Debug' || probeRsLogLevel === 'Trace') {
logToConsole("DEBUG: Received message from debug adapter:\n" + JSON.stringify(message, null, 2));
}
}

onError(error: Error) {
if (probeRsLogLevel === 'Debug') {
if (probeRsLogLevel === 'Debug' || probeRsLogLevel === 'Trace') {
logToConsole("ERROR: Error in communication with debug adapter:\n" + JSON.stringify(error, null, 2));
}
}
Expand Down

0 comments on commit b84fdc3

Please sign in to comment.