mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 00:58:50 +01:00
Shorten logger names for Discord module console relay
This commit is contained in:
parent
803d800bdd
commit
1921abd310
@ -78,9 +78,10 @@ public class ConsoleInjector extends AbstractAppender {
|
||||
}
|
||||
}
|
||||
|
||||
final String loggerName = event.getLoggerName();
|
||||
if (!loggerName.isEmpty() && !loggerName.contains(".")) {
|
||||
entry = "[" + event.getLoggerName() + "] " + entry;
|
||||
final String[] loggerNameSplit = event.getLoggerName().split("\\.");
|
||||
final String loggerName = loggerNameSplit[loggerNameSplit.length - 1].trim();
|
||||
if (!loggerName.isEmpty()) {
|
||||
entry = "[" + loggerName + "] " + entry;
|
||||
}
|
||||
|
||||
messageQueue.addAll(Splitter.fixedLength(Message.MAX_CONTENT_LENGTH - 50).splitToList(
|
||||
|
Loading…
Reference in New Issue
Block a user