Sponge: remove spammy user not already loaded message
This commit is contained in:
parent
cd7b3b4f6e
commit
8b60fd0e55
@ -144,7 +144,7 @@ public class SpongeGroupManager implements GroupManager, LPSubjectCollection {
|
||||
} else {
|
||||
|
||||
// Group isn't already loaded. hopefully this call is not on the main thread. :(
|
||||
plugin.getLog().warn("Group Subject '" + id + "' was requested, but is not loaded in memory. Loading it from storage now.");
|
||||
//plugin.getLog().warn("Group Subject '" + id + "' was requested, but is not loaded in memory. Loading it from storage now.");
|
||||
long startTime = System.currentTimeMillis();
|
||||
plugin.getStorage().createAndLoadGroup(id).join();
|
||||
SpongeGroup group = getIfLoaded(id);
|
||||
@ -154,7 +154,7 @@ public class SpongeGroupManager implements GroupManager, LPSubjectCollection {
|
||||
return plugin.getService().getFallbackGroupSubjects().get(id);
|
||||
}
|
||||
|
||||
plugin.getLog().warn("Loading '" + id + "' took " + (System.currentTimeMillis() - startTime) + " ms.");
|
||||
//plugin.getLog().warn("Loading '" + id + "' took " + (System.currentTimeMillis() - startTime) + " ms.");
|
||||
return group.getSpongeData();
|
||||
}
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ public class SpongeUserManager implements UserManager, LPSubjectCollection {
|
||||
} else {
|
||||
|
||||
// User isn't already loaded. hopefully this call is not on the main thread. :(
|
||||
plugin.getLog().warn("User Subject '" + u + "' was requested, but is not loaded in memory. Loading them from storage now.");
|
||||
//plugin.getLog().warn("User Subject '" + u + "' was requested, but is not loaded in memory. Loading them from storage now.");
|
||||
long startTime = System.currentTimeMillis();
|
||||
plugin.getStorage().loadUser(u, "null").join();
|
||||
SpongeUser user = get(u);
|
||||
@ -208,7 +208,7 @@ public class SpongeUserManager implements UserManager, LPSubjectCollection {
|
||||
}
|
||||
|
||||
user.setupData(false);
|
||||
plugin.getLog().warn("Loading '" + u + "' took " + (System.currentTimeMillis() - startTime) + " ms.");
|
||||
//plugin.getLog().warn("Loading '" + u + "' took " + (System.currentTimeMillis() - startTime) + " ms.");
|
||||
return user.getSpongeData();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user