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

Upload the diagnostic logs to the Results Service #3114

Merged
Prev Previous commit
Next Next commit
change API contract
  • Loading branch information
jtamsut committed Jan 30, 2024
commit 7a28c2137626d2a0dd2613c667f59d62cbc8f607
2 changes: 1 addition & 1 deletion src/Sdk/WebApi/WebApi/Contracts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class GetSignedDiagnosticLogsURLRequest
public class GetSignedDiagnosticLogsURLResponse
{
[DataMember]
public string DiagnosticLogsURL;
public string DiagLogsURL;
[DataMember]
public string BlobStorageType;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Sdk/WebApi/WebApi/ResultsHttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,12 @@ public async Task UploadResultsDiagnosticLogsAsync(string planId, string jobId,
{
// Get the upload url
var uploadUrlResponse = await GetDiagnosticLogsUploadUrlAsync(planId, jobId, cancellationToken);
if (uploadUrlResponse == null || uploadUrlResponse.DiagnosticLogsURL == null)
if (uploadUrlResponse == null || uploadUrlResponse.DiagLogsURL == null)
{
throw new Exception("Failed to get diagnostic logs upload url");
}

await UploadLogFile(file, true, true, uploadUrlResponse.DiagnosticLogsURL, uploadUrlResponse.BlobStorageType, cancellationToken);
await UploadLogFile(file, true, true, uploadUrlResponse.DiagLogsURL, uploadUrlResponse.BlobStorageType, cancellationToken);
}

private Step ConvertTimelineRecordToStep(TimelineRecord r)
Expand Down
Loading