Skip to content

Commit

Permalink
Display logs locally as well
Browse files Browse the repository at this point in the history
  • Loading branch information
heqianwang committed Aug 13, 2024
1 parent 8b55e6f commit de935b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Workleap.OpenApi.MSBuild/Spectral/SpectralRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private async Task GenerateSpectralReport(string spectralExecutePath, string swa
}

this._loggerWrapper.LogMessage("Running Spectral...", MessageImportance.Normal);
var result = await this._processWrapper.RunProcessAsync(spectralExecutePath, new[] { "lint", swaggerDocumentPath, "--ruleset", rulesetPath, "--format", "stylish", "--output", spectralReportPath, "--fail-severity=warn", "--verbose" }, cancellationToken);
var result = await this._processWrapper.RunProcessAsync(spectralExecutePath, new[] { "lint", swaggerDocumentPath, "--ruleset", rulesetPath, "--format", "pretty", "--format", "stylish", "--output.stylish", spectralReportPath, "--fail-severity=warn", "--verbose" }, cancellationToken);

this._loggerWrapper.LogMessage(result.StandardOutput, MessageImportance.High);
if (!string.IsNullOrEmpty(result.StandardError))
Expand Down

0 comments on commit de935b8

Please sign in to comment.