mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-07 11:20:11 +01:00
Changed language for Extension errors:
This redirects blame away from the plugin that the extension is about.
This commit is contained in:
parent
2f4a53711e
commit
08ce920727
@ -159,7 +159,7 @@ public class ExtensionServiceImplementation implements ExtensionService {
|
|||||||
// Try again
|
// Try again
|
||||||
updatePlayerValues(gatherer, playerUUID, playerName, event);
|
updatePlayerValues(gatherer, playerUUID, playerName, event);
|
||||||
} catch (Exception | NoClassDefFoundError | NoSuchFieldError | NoSuchMethodError unexpectedError) {
|
} catch (Exception | NoClassDefFoundError | NoSuchFieldError | NoSuchMethodError unexpectedError) {
|
||||||
logger.warn(gatherer.getPluginName() + " ran into unexpected error (please report this)" + unexpectedError +
|
logger.warn("Encountered unexpected error with " + gatherer.getPluginName() + " Extension (please report this): " + unexpectedError +
|
||||||
" (but failed safely) when updating value for '" + playerName +
|
" (but failed safely) when updating value for '" + playerName +
|
||||||
"', stack trace to follow:");
|
"', stack trace to follow:");
|
||||||
errorHandler.log(L.WARN, gatherer.getClass(), unexpectedError);
|
errorHandler.log(L.WARN, gatherer.getClass(), unexpectedError);
|
||||||
@ -169,8 +169,8 @@ public class ExtensionServiceImplementation implements ExtensionService {
|
|||||||
private void logFailure(String playerName, DataExtensionMethodCallException methodCallFailed) {
|
private void logFailure(String playerName, DataExtensionMethodCallException methodCallFailed) {
|
||||||
Throwable cause = methodCallFailed.getCause();
|
Throwable cause = methodCallFailed.getCause();
|
||||||
String causeName = cause.getClass().getSimpleName();
|
String causeName = cause.getClass().getSimpleName();
|
||||||
logger.warn(methodCallFailed.getPluginName() + " ran into " + causeName +
|
logger.warn("Encountered " + causeName + " with " + methodCallFailed.getPluginName() + " Extension (please report this)" +
|
||||||
" (but failed safely) when updating value for '" + playerName +
|
" (failed safely) when updating value for '" + playerName +
|
||||||
"', the method was disabled temporarily (won't be called until next Plan reload)" +
|
"', the method was disabled temporarily (won't be called until next Plan reload)" +
|
||||||
", stack trace to follow:");
|
", stack trace to follow:");
|
||||||
errorHandler.log(L.WARN, getClass(), cause);
|
errorHandler.log(L.WARN, getClass(), cause);
|
||||||
@ -198,8 +198,8 @@ public class ExtensionServiceImplementation implements ExtensionService {
|
|||||||
// Try again
|
// Try again
|
||||||
updateServerValues(gatherer, event);
|
updateServerValues(gatherer, event);
|
||||||
} catch (Exception | NoClassDefFoundError | NoSuchFieldError | NoSuchMethodError unexpectedError) {
|
} catch (Exception | NoClassDefFoundError | NoSuchFieldError | NoSuchMethodError unexpectedError) {
|
||||||
logger.warn(gatherer.getPluginName() + " ran into unexpected error (please report this)" + unexpectedError +
|
logger.warn("Encountered unexpected error with " + gatherer.getPluginName() + " Extension (please report this): " + unexpectedError +
|
||||||
" (but failed safely) when updating value for server, stack trace to follow:");
|
" (failed safely) when updating value for server, stack trace to follow:");
|
||||||
errorHandler.log(L.WARN, gatherer.getClass(), unexpectedError);
|
errorHandler.log(L.WARN, gatherer.getClass(), unexpectedError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user