aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Logging/UnhandledExceptionWriter.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-04-27 14:11:56 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-04-27 14:11:56 -0400
commitffb935700cc2d9ac47a81e43cf2187ff8c78957a (patch)
treebf3d2d82b5d4637b8c1b78699634c0d7b12cff62 /Emby.Server.Implementations/Logging/UnhandledExceptionWriter.cs
parentf13696868fd87924441a732e703350b56ae6ad7b (diff)
update mono unhandled exception handler
Diffstat (limited to 'Emby.Server.Implementations/Logging/UnhandledExceptionWriter.cs')
-rw-r--r--Emby.Server.Implementations/Logging/UnhandledExceptionWriter.cs6
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);
}
}
}