Skip to content

Commit

Permalink
Remove console.debug statements
Browse files Browse the repository at this point in the history
This is related to #540
  • Loading branch information
sc68cal committed Jan 10, 2023
1 parent 975f3a6 commit bc772ec
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/providers/validationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export async function doValidate(

const settings = await context.documentSettings.get(textDocument.uri);
if (!settings.validation.enabled) {
console.log("Validation disabled");

// this is done to remove the cache as well
const blankDiagnostics = new Map<string, Diagnostic[]>();
Expand All @@ -58,10 +57,8 @@ export async function doValidate(
const lintAvailability = await commandRunner.getExecutablePath(
lintExecutable,
);
console.debug("Path for lint: ", lintAvailability);

if (lintAvailability) {
console.debug("Validating using ansible-lint");
diagnosticsByFile = await context.ansibleLint.doValidate(textDocument);
} else {
connection?.window.showErrorMessage(
Expand All @@ -72,15 +69,12 @@ export async function doValidate(

// validate using ansible-playbook --syntax-check
else {
console.debug("Validating using ansible syntax-check");

if (isPlaybook(textDocument)) {
console.debug("playbook file");
diagnosticsByFile = await context.ansiblePlaybook.doValidate(
textDocument,
);
} else {
console.debug("non-playbook file");
diagnosticsByFile = new Map<string, Diagnostic[]>();
}
}
Expand Down

0 comments on commit bc772ec

Please sign in to comment.