Skip to content

Commit

Permalink
Merge pull request #403 from bcgov/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
ychung-mot authored Jun 19, 2024
2 parents 1881bbd + bf9605d commit 65be012
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server/StrDss.Service/RentalListingReportService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ public async Task ProcessRentalReportUploadAsync()

private async Task ProcessRentalReportUploadAsync(DssUploadDelivery upload)
{
var processStopwatch = Stopwatch.StartNew();

_logger.LogInformation($"Processing Rental Listing Report {upload.ProvidingOrganizationId} - {upload.ReportPeriodYm} - {upload.ProvidingOrganization.OrganizationNm}");

var reportPeriodYm = (DateOnly)upload.ReportPeriodYm!;
Expand Down Expand Up @@ -372,7 +374,7 @@ private async Task ProcessRentalReportUploadAsync(DssUploadDelivery upload)

processedCount++;

_logger.LogInformation($"Finishing listing ({row.OrgCd} - {row.ListingId}): {stopwatch.Elapsed.TotalMilliseconds} milliseconds");
_logger.LogInformation($"Finishing listing ({row.OrgCd} - {row.ListingId}): {stopwatch.Elapsed.TotalMilliseconds} milliseconds - {processedCount}/100");
}

if (!isLastLine)
Expand Down Expand Up @@ -437,7 +439,9 @@ private async Task ProcessRentalReportUploadAsync(DssUploadDelivery upload)
_unitOfWork.CommitTransaction(transaction);
}

_logger.LogInformation($"Finished: {report.ReportPeriodYm.ToString("yyyy-MM")}, {report.ProvidingOrganization.OrganizationNm}");
processStopwatch.Stop();

_logger.LogInformation($"Finished: {report.ReportPeriodYm.ToString("yyyy-MM")}, {report.ProvidingOrganization.OrganizationNm} - {processStopwatch.Elapsed.TotalSeconds} seconds");
}

private async Task<bool> ProcessUploadLine(DssRentalListingReport report, DssUploadDelivery upload, DssUploadLine uploadLine, RentalListingRowUntyped row, bool isLastLine)
Expand Down

0 comments on commit 65be012

Please sign in to comment.