mirror of
https://github.com/oqtane/oqtane.framework.git
synced 2025-05-19 11:04:23 +00:00
Merge remote-tracking branch 'oqtane/dev' into dev
This commit is contained in:
commit
9108eb5616
@ -66,7 +66,7 @@ namespace Oqtane.Services
|
|||||||
// legacy support for ControllerRoutes.Default
|
// legacy support for ControllerRoutes.Default
|
||||||
if (alias != null)
|
if (alias != null)
|
||||||
{
|
{
|
||||||
// include the alias for multi-tenant context
|
// include the alias id for multi-tenant context
|
||||||
apiurl += $"{alias.AliasId}/";
|
apiurl += $"{alias.AliasId}/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -223,7 +223,7 @@ namespace Oqtane.Services
|
|||||||
|
|
||||||
private async Task Log(string uri, string method, string status, string message, params object[] args)
|
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();
|
var log = new Log();
|
||||||
log.SiteId = _siteState.Alias.SiteId;
|
log.SiteId = _siteState.Alias.SiteId;
|
||||||
|
@ -210,7 +210,7 @@ namespace Oqtane.Infrastructure
|
|||||||
{
|
{
|
||||||
var subject = $"{alias.Name} Site {log.Level} Notification";
|
var subject = $"{alias.Name} Site {log.Level} Notification";
|
||||||
var url = $"{_accessor.HttpContext.Request.Scheme}://{alias.Name}/admin/log?id={log.LogId}";
|
var url = $"{_accessor.HttpContext.Request.Scheme}://{alias.Name}/admin/log?id={log.LogId}";
|
||||||
string body = $"Log Message: {log.Message}\n\nPlease visit {url} for more information";
|
string body = $"Log Message: {log.Message}<br /><br />Please visit {url} for more information";
|
||||||
var notification = new Notification(log.SiteId.Value, userrole.User, subject, body);
|
var notification = new Notification(log.SiteId.Value, userrole.User, subject, body);
|
||||||
_notifications.AddNotification(notification);
|
_notifications.AddNotification(notification);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user