@@ -563,12 +563,12 @@ public void HandleMainLoopException(ShutdownEventArgs reason)
563
563
if ( ! SetCloseReason ( reason ) )
564
564
{
565
565
LogCloseError ( "Unexpected Main Loop Exception while closing: "
566
- + reason , null ) ;
566
+ + reason , new Exception ( reason . ToString ( ) ) ) ;
567
567
return ;
568
568
}
569
569
570
570
OnShutdown ( ) ;
571
- LogCloseError ( "Unexpected connection closure: " + reason , null ) ;
571
+ LogCloseError ( "Unexpected connection closure: " + reason , new Exception ( reason . ToString ( ) ) ) ;
572
572
}
573
573
574
574
public bool HardProtocolExceptionHandler ( HardProtocolException hpe )
@@ -616,6 +616,7 @@ public void InternalClose(ShutdownEventArgs reason)
616
616
617
617
public void LogCloseError ( String error , Exception ex )
618
618
{
619
+ ESLog . Error ( error , ex ) ;
619
620
m_shutdownReport . Add ( new ShutdownReportEntry ( error , ex ) ) ;
620
621
}
621
622
@@ -1049,6 +1050,7 @@ public void HeartbeatReadTimerCallback(object state)
1049
1050
{
1050
1051
String description = String . Format ( "Heartbeat missing with heartbeat == {0} seconds" , m_heartbeat ) ;
1051
1052
var eose = new EndOfStreamException ( description ) ;
1053
+ ESLog . Error ( description , eose ) ;
1052
1054
m_shutdownReport . Add ( new ShutdownReportEntry ( description , eose ) ) ;
1053
1055
HandleMainLoopException (
1054
1056
new ShutdownEventArgs ( ShutdownInitiator . Library , 0 , "End of stream" , eose ) ) ;
0 commit comments