mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-08-09 03:48:54 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user