fix mistake of rethrowing exception (which loses call stack) to just throw (which does not)

This commit is contained in:
2020-09-21 18:56:25 +00:00
parent 2193e36161
commit c3a8e4c8e0

View File

@@ -92,7 +92,7 @@ namespace AyaNova.Biz
{
log.LogError(ex, "sweepAsync exception calling JobsBiz.RemoveJobAndLogsAsync");
//for now just throw it but this needs to be removed when logging added and better handling
throw (ex);
throw;
}
}
}
@@ -142,7 +142,7 @@ namespace AyaNova.Biz
catch (Exception ex)
{
log.LogError(ex, "SweepInternalJobsLogsAsync exception removed old log entries");
throw (ex);
throw;
}
}
}