fix issue #170 which is related to the host user not being part of the Registered Users role
This commit is contained in:
@ -62,11 +62,18 @@ namespace Oqtane.Infrastructure
|
||||
log.Level = Enum.GetName(typeof(LogLevel), Level);
|
||||
if (Exception != null)
|
||||
{
|
||||
log.Exception = JsonSerializer.Serialize(Exception.ToString());
|
||||
log.Exception = Exception.ToString();
|
||||
}
|
||||
log.Message = Message;
|
||||
log.MessageTemplate = "";
|
||||
log.Properties = JsonSerializer.Serialize(Args);
|
||||
try
|
||||
{
|
||||
log.Properties = JsonSerializer.Serialize(Args);
|
||||
}
|
||||
catch // serialization error occurred
|
||||
{
|
||||
log.Properties = "";
|
||||
}
|
||||
Log(log);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user