mirror of https://github.com/winsw/winsw
log complete stacktrace
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@26 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308faremotes/git-svn
parent
afb43c58e2
commit
54c4a25951
9
Main.cs
9
Main.cs
|
@ -467,6 +467,11 @@ namespace winsw
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void WriteEvent(String message, Exception exception)
|
||||||
|
{
|
||||||
|
WriteEvent(message + "\nMessage:" + exception.Message + "\nStacktrace:" + exception.StackTrace);
|
||||||
|
}
|
||||||
|
|
||||||
private void WriteEvent(String message)
|
private void WriteEvent(String message)
|
||||||
{
|
{
|
||||||
string logfilename = Path.Combine(descriptor.LogDirectory, descriptor.BaseName + ".wrapper.log");
|
string logfilename = Path.Combine(descriptor.LogDirectory, descriptor.BaseName + ".wrapper.log");
|
||||||
|
@ -517,7 +522,7 @@ namespace winsw
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
WriteEvent("Shutdown exception:"+ex.Message);
|
WriteEvent("Shutdown exception", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -529,7 +534,7 @@ namespace winsw
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
WriteEvent("Stop exception:" + ex.Message);
|
WriteEvent("Stop exception", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue