Prevent hard to reproducable stacktraces from being swallowed.

This commit is contained in:
yueh 2016-11-10 12:16:39 +01:00
parent f96f7d82c5
commit fc834036a0

View file

@ -185,9 +185,8 @@ public class NetworkEventBus
catch( final Throwable e1 ) catch( final Throwable e1 )
{ {
AELog.error( "[AppEng] Network Event caused exception:" ); AELog.error( "[AppEng] Network Event caused exception:" );
AELog.error( "Offending Class: " + obj.getClass().getName() ); AELog.error( "Class: %1s, Object: %2s", obj.getClass().getName(), obj.toString() );
AELog.error( "Offending Object: " + obj.toString() ); AELog.info( e1 );
AELog.debug( e1 );
throw new IllegalStateException( e1 ); throw new IllegalStateException( e1 );
} }