logging improvements

This commit is contained in:
Shaun Walker
2019-10-22 18:16:04 -04:00
parent 135fe2d61a
commit e710fd61ca
6 changed files with 98 additions and 43 deletions

View File

@ -51,7 +51,7 @@ namespace Oqtane.Infrastructure
log.Level = Enum.GetName(typeof(LogLevel), Level);
if (Exception != null)
{
log.Exception = JsonSerializer.Serialize(Exception);
log.Exception = JsonSerializer.Serialize(Exception.ToString());
}
log.Message = Message;
log.MessageTemplate = "";