mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
tweaked logging tests.
This commit is contained in:
parent
22bbf83e42
commit
ccba527e89
4 changed files with 26 additions and 4 deletions
|
@ -31,7 +31,11 @@ namespace NzbDrone.Core.Instrumentation
|
|||
log.Time = logEvent.TimeStamp;
|
||||
log.Message = logEvent.FormattedMessage;
|
||||
|
||||
log.Method = logEvent.UserStackFrame.GetMethod().Name;
|
||||
if (logEvent.UserStackFrame != null)
|
||||
{
|
||||
log.Method = logEvent.UserStackFrame.GetMethod().Name;
|
||||
}
|
||||
|
||||
log.Logger = logEvent.LoggerName;
|
||||
|
||||
if (log.Logger.StartsWith("NzbDrone."))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue