|
18 | 18 | import java.util.function.Supplier; |
19 | 19 | import mekanism.api.Action; |
20 | 20 | import mekanism.api.AutomationType; |
| 21 | +import mekanism.api.MekanismAPI; |
21 | 22 | import mekanism.api.MekanismAPITags; |
22 | 23 | import mekanism.api.Upgrade; |
23 | 24 | import mekanism.api.chemical.IChemicalTank; |
@@ -113,13 +114,19 @@ public final class MekanismUtils { |
113 | 114 | // possible, and also ideally would use our normal logger instead of the API logger |
114 | 115 | public static void logMismatchedStackSize(long actual, long expected) { |
115 | 116 | if (expected != actual) { |
116 | | - Mekanism.logger.error("Stack size changed by a different amount ({}) than requested ({}).", actual, expected, new Exception()); |
| 117 | + Mekanism.logger.error("Stack size changed by a different amount ({}) than requested ({}).", actual, expected); |
| 118 | + if (MekanismAPI.debug) { |
| 119 | + Mekanism.logger.error("Location ", new Exception()); |
| 120 | + } |
117 | 121 | } |
118 | 122 | } |
119 | 123 |
|
120 | 124 | public static void logExpectedZero(long actual) { |
121 | 125 | if (actual != 0L) { |
122 | | - Mekanism.logger.error("Energy value changed by a different amount ({}) than requested (zero).", actual, new Exception()); |
| 126 | + Mekanism.logger.error("Energy value changed by a different amount ({}) than requested (zero).", actual); |
| 127 | + if (MekanismAPI.debug) { |
| 128 | + Mekanism.logger.error("Location ", new Exception()); |
| 129 | + } |
123 | 130 | } |
124 | 131 | } |
125 | 132 |
|
|
0 commit comments