Updated log appearance.

This commit is contained in:
Keivan 2010-10-24 10:35:58 -07:00
commit c9bc063a9c
11 changed files with 81 additions and 33 deletions

View file

@ -33,6 +33,9 @@ namespace NzbDrone.Core.Instrumentation
if (logEvent.Exception != null)
{
if (String.IsNullOrWhiteSpace(log.Message))
log.Message = logEvent.Exception.Message;
log.ExceptionMessage = logEvent.Exception.Message;
log.ExceptionString = logEvent.Exception.ToString();
log.ExceptionType = logEvent.Exception.GetType().ToString();