Refactored the error params, so that exception is before the message/template so its more in sync with Serilog signature & was an easy way to find some more logs I missed too
This commit is contained in:
@@ -192,7 +192,7 @@ namespace Umbraco.Core.Persistence
|
||||
|
||||
protected override void OnException(Exception ex)
|
||||
{
|
||||
_logger.Error<UmbracoDatabase>("Exception ({InstanceId}).", ex, InstanceId);
|
||||
_logger.Error<UmbracoDatabase>(ex, "Exception ({InstanceId}).", InstanceId);
|
||||
_logger.Debug<UmbracoDatabase>("At:\r\n{StackTrace}", Environment.StackTrace);
|
||||
if (EnableSqlTrace == false)
|
||||
_logger.Debug<UmbracoDatabase>("Sql:\r\n{Sql}", CommandToString(LastSQL, LastArgs));
|
||||
|
||||
Reference in New Issue
Block a user