mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* some logging changes.
This commit is contained in:
parent
cddff5fbac
commit
45c875384c
3 changed files with 4 additions and 3 deletions
|
@ -105,7 +105,7 @@ public class UserManager {
|
|||
ChatManager.getInstance().removeUser(userId, User.DisconnectReason.Disconnected);
|
||||
if (users.containsKey(userId)) {
|
||||
User user = users.get(userId);
|
||||
logger.info(new StringBuilder("User ").append(user.getName()).append("disconnected id:").append(userId).toString());
|
||||
logger.info(new StringBuilder("User ").append(user.getName()).append(" disconnected id:").append(userId).toString());
|
||||
users.get(userId).setSessionId("");
|
||||
ChatManager.getInstance().broadcast(userId, "has lost connection", MessageColor.BLACK);
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ public class ArtificialScoringSystem implements ScoringSystem {
|
|||
|
||||
static {
|
||||
inst = new ArtificialScoringSystem();
|
||||
log.info("ArtificialScoringSystem has been instantiated.");
|
||||
log.debug("ArtificialScoringSystem has been instantiated.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -25,6 +25,7 @@ public class ArtificialScoringSystem implements ScoringSystem {
|
|||
* @param game
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int getLoseGameScore(final Game game) {
|
||||
if (game.getStep() == null) {
|
||||
return 0;
|
||||
|
|
|
@ -104,7 +104,7 @@ public abstract class MatchImpl implements Match {
|
|||
|
||||
@Override
|
||||
public void startMatch() throws GameException {
|
||||
|
||||
this.startTime = new Date();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue