> {
protected final Map {
}
}
} catch (Exception ex) {
- core.getPlugin().getLog().error("Failed to check premium state", ex);
+ core.getPlugin().getLog().error("Failed to check premium state of {}", username, ex);
}
}
diff --git a/core/src/main/java/com/github/games647/fastlogin/core/shared/LoginSession.java b/core/src/main/java/com/github/games647/fastlogin/core/shared/LoginSession.java
index 3facc876..b973d3db 100644
--- a/core/src/main/java/com/github/games647/fastlogin/core/shared/LoginSession.java
+++ b/core/src/main/java/com/github/games647/fastlogin/core/shared/LoginSession.java
@@ -55,7 +55,7 @@ public abstract class LoginSession {
}
@Override
- public String toString() {
+ public synchronized String toString() {
return this.getClass().getSimpleName() + '{' +
"username='" + username + '\'' +
", profile=" + profile +