updates error msgs when sending requests to the same server pointing to docs on baseUrl

This commit is contained in:
Shannon
2014-12-08 17:04:22 +11:00
parent 3405c5001b
commit 864994a56e
2 changed files with 9 additions and 6 deletions

View File

@@ -13,8 +13,7 @@ namespace Umbraco.Web.Scheduling
{
using (DisposableTimer.DebugDuration<KeepAlive>(() => "Keep alive executing", () => "Keep alive complete"))
{
var umbracoBaseUrl = ServerEnvironmentHelper.GetCurrentServerUmbracoBaseUrl(
appContext);
var umbracoBaseUrl = ServerEnvironmentHelper.GetCurrentServerUmbracoBaseUrl(appContext);
if (string.IsNullOrWhiteSpace(umbracoBaseUrl))
{
@@ -33,7 +32,9 @@ namespace Umbraco.Web.Scheduling
}
catch (Exception ee)
{
LogHelper.Error<KeepAlive>("Error in ping", ee);
LogHelper.Error<KeepAlive>(
string.Format("Error in ping. The base url used in the request was: {0}, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/#ScheduledTasks documentation for details on setting a baseUrl if this is in error", umbracoBaseUrl)
, ee);
}
}
}