Print stack traces/add logging messages in several places

This will hopefully make it easier to track down various issues which
might otherwise go unnoticed or provide little information.

The main areas modified are those that external APIs may provide values
for or interact with: various providers and ILuaObject/IPeripheral
implementations. However, we do also log in a couple of other places
which indicate a problem with this, or another, mod.
This commit is contained in:
SquidDev
2017-05-16 15:49:55 +01:00
parent bdc438fc62
commit 44ba4069c1
8 changed files with 33 additions and 17 deletions
@@ -609,7 +609,7 @@ public class ComputerCraft
}
catch( Exception e )
{
// mod misbehaved, ignore it
Logger.error( "Peripheral provider " + peripheralProvider + " errored.", e );
}
}
return null;
@@ -653,7 +653,7 @@ public class ComputerCraft
}
catch( Exception e )
{
// mod misbehaved, ignore it
Logger.error( "Bundled redstone provider " + bundledRedstoneProvider + " errored.", e );
}
}
return combinedSignal;
@@ -677,6 +677,7 @@ public class ComputerCraft
catch( Exception e )
{
// mod misbehaved, ignore it
Logger.error( "Media provider " + mediaProvider + " errored.", e );
}
}
return null;