Browse files

Host displays exception to console, so that the error is visible even…

… when logging is not configured.
  • Loading branch information...
1 parent 8fb4e89 commit 159ec5621c3f0ad8bc8a4a2e53e375bc9379de79 @jberezanski jberezanski committed with Jakub Berezanski Sep 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Rhino.ServiceBus.Host/Program.cs
View
3 Rhino.ServiceBus.Host/Program.cs
@@ -49,7 +49,8 @@ public static int Main(string[] args)
}
catch (Exception e)
{
- log.Fatal("Host has crashed because of an error",e);
+ Console.WriteLine(e);
+ log.Fatal("Host has crashed because of an error", e);
// want to put the error in the error log
if(action == Action.Server)
throw;

0 comments on commit 159ec56

Please sign in to comment.