Merge pull request #2845 from umbraco/temp8-serilog

Bye bye Log4Net, Hello Serilog
This commit is contained in:
Shannon Deminick
2018-08-28 20:31:12 +10:00
committed by GitHub
181 changed files with 1316 additions and 1367 deletions

View File

@@ -64,9 +64,9 @@ namespace Umbraco.Web.Scheduling
var request = new HttpRequestMessage(HttpMethod.Get, url);
var result = await _httpClient.SendAsync(request, token);
}
catch (Exception e)
catch (Exception ex)
{
_logger.Error<KeepAlive>(string.Format("Failed (at \"{0}\").", umbracoAppUrl), e);
_logger.Error<KeepAlive>(ex, "Failed (at '{UmbracoAppUrl}').", umbracoAppUrl);
}
}