diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-04-27 14:24:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-27 14:24:55 -0400 |
| commit | 25b25afbb837adcb0af723f63ad54f9be8fe7de7 (patch) | |
| tree | bc8ec4c0170f1a8e34f88587e2335a63658cf830 /Emby.Server.Implementations/Logging/UnhandledExceptionWriter.cs | |
| parent | 859a8f95877725c2aeafda3eb95776ff25fcdd75 (diff) | |
| parent | 0f07d97031f8680dc9df0ad8752141c46bbc9c2b (diff) | |
Merge pull request #2598 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Logging/UnhandledExceptionWriter.cs')
| -rw-r--r-- | Emby.Server.Implementations/Logging/UnhandledExceptionWriter.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Logging/UnhandledExceptionWriter.cs b/Emby.Server.Implementations/Logging/UnhandledExceptionWriter.cs index 5183f3a0b..6e96d83fd 100644 --- a/Emby.Server.Implementations/Logging/UnhandledExceptionWriter.cs +++ b/Emby.Server.Implementations/Logging/UnhandledExceptionWriter.cs @@ -35,9 +35,11 @@ namespace Emby.Server.Implementations.Logging // Write to console just in case file logging fails _console.WriteLine("UnhandledException"); - _console.WriteLine(builder.ToString()); - _fileSystem.WriteAllText(path, builder.ToString()); + var logMessage = builder.ToString(); + _console.WriteLine(logMessage); + + _fileSystem.WriteAllText(path, logMessage); } } } |
