Merge pull request #3039 from sbwalker/dev

prevent client looping if server is down
This commit is contained in:
Shaun Walker 2023-07-17 11:49:16 -04:00 committed by GitHub
commit e9ed1ecc8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ namespace Oqtane.Services
// legacy support for ControllerRoutes.Default
if (alias != null)
{
// include the alias for multi-tenant context
// include the alias id for multi-tenant context
apiurl += $"{alias.AliasId}/";
}
else
@ -223,7 +223,7 @@ namespace Oqtane.Services
private async Task Log(string uri, string method, string status, string message, params object[] args)
{
if (_siteState.Alias != null)
if (_siteState.Alias != null && !uri.StartsWith(CreateApiUrl("Log")))
{
var log = new Log();
log.SiteId = _siteState.Alias.SiteId;