summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-10-07 16:45:10 +0200
committerTor Andersson <tor@ccxvii.net>2021-10-07 16:45:10 +0200
commitd5cc1a00b8c24f36041afe7f71df504194a970d6 (patch)
treef8d3108b96fd766c43d13593e6095a378da13de1 /server.js
parent4de00f2ed9e3e122301f2fdb4eb71fc1c50509d0 (diff)
downloadserver-d5cc1a00b8c24f36041afe7f71df504194a970d6.tar.gz
server: Remove your turn reminder debugging log messages.
Diffstat (limited to 'server.js')
-rw-r--r--server.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/server.js b/server.js
index 176b7f1..fff6ee1 100644
--- a/server.js
+++ b/server.js
@@ -1059,7 +1059,6 @@ function mail_password_reset_token(user, token) {
function mail_your_turn_notification(user, game_id, interval) {
let too_soon = sql_notify_too_soon.get(interval, user.user_id, game_id);
if (!too_soon) {
- console.log("YOUR TURN (SENT):", game_id, user.name, user.mail, too_soon);
sql_notify_update.run(user.user_id, game_id);
let game = QUERY_GAME.get(game_id);
let subject = game.title_name + " - " + game_id + " - Your turn!";
@@ -1068,8 +1067,6 @@ function mail_your_turn_notification(user, game_id, interval) {
"https://rally-the-troops.com/play/" + game_id + "\n\n" +
MAIL_FOOTER;
mailer.sendMail({ from: MAIL_FROM, to: mail_addr(user), subject: subject, text: body }, mail_callback);
- } else {
- console.log("YOUR TURN (TOO SOON):", game_id, user.name, user.mail, too_soon);
}
}
@@ -1079,7 +1076,6 @@ function reset_your_turn_notification(user, game_id) {
function mail_ready_to_start_notification(user, game_id, interval) {
let too_soon = sql_notify_too_soon.get(interval, user.user_id, game_id);
- console.log("READY TO START:", game_id, user.name, user.mail, too_soon);
if (!too_soon) {
sql_notify_update.run(user.user_id, game_id);
let game = QUERY_GAME.get(game_id);
@@ -1126,7 +1122,6 @@ function mail_your_turn_notification_to_offline_users(game_id, old_active, activ
function notify_your_turn_reminder() {
for (let item of QUERY_LIST_YOUR_TURN.all()) {
if (!QUERY_IS_SOLO.get(item.game_id)) {
- console.log("REMINDER: YOUR TURN", item.title_id, item.game_id, item.active, item.name, item.mail);
mail_your_turn_notification(item, item.game_id, '+25 hours');
}
}
@@ -1138,7 +1133,6 @@ function notify_ready_to_start_reminder() {
if (RULES[game.title_id].ready(game.scenario, players)) {
let owner = sql_offline_user.get(game.owner_id, '+3 minutes');
if (owner) {
- console.log("REMINDER: READY TO START", game.title_id, game.game_id, owner.name, owner.mail, owner.notifications);
if (owner.notifications)
mail_ready_to_start_notification(owner, game.game_id, '+25 hours');
}