Skip to content

Commit

Permalink
remove added debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
spali committed Apr 22, 2024
1 parent 73e4608 commit ec822e6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1043,8 +1043,6 @@ let needSetup = false;
try {
checkLogin(socket);

log.debug("manage", `Add Tag: ${tag} User ID: ${socket.userID}`);

let bean = R.dispense("tag");
bean.name = tag.name;
bean.color = tag.color;
Expand All @@ -1067,8 +1065,6 @@ let needSetup = false;
try {
checkLogin(socket);

log.debug("manage", `Edit Tag: ${tag} User ID: ${socket.userID}`);

let bean = await R.findOne("tag", " id = ? ", [ tag.id ]);
if (bean == null) {
callback({
Expand Down Expand Up @@ -1101,8 +1097,6 @@ let needSetup = false;
try {
checkLogin(socket);

log.debug("manage", `Delete Tag: ${tagID} User ID: ${socket.userID}`);

await R.exec("DELETE FROM tag WHERE id = ? ", [ tagID ]);

callback({
Expand All @@ -1123,8 +1117,6 @@ let needSetup = false;
try {
checkLogin(socket);

log.debug("manage", `Add Monitor(${monitorID}) Tag(${tagID}): ${value} User ID: ${socket.userID}`);

await R.exec("INSERT INTO monitor_tag (tag_id, monitor_id, value) VALUES (?, ?, ?)", [
tagID,
monitorID,
Expand All @@ -1149,8 +1141,6 @@ let needSetup = false;
try {
checkLogin(socket);

log.debug("manage", `Edit Monitor(${monitorID}) Tag(${tagID}): ${value} User ID: ${socket.userID}`);

await R.exec("UPDATE monitor_tag SET value = ? WHERE tag_id = ? AND monitor_id = ?", [
value,
tagID,
Expand All @@ -1175,8 +1165,6 @@ let needSetup = false;
try {
checkLogin(socket);

log.debug("manage", `Delete Monitor(${monitorID}) Tag(${tagID}): ${value} User ID: ${socket.userID}`);

await R.exec("DELETE FROM monitor_tag WHERE tag_id = ? AND monitor_id = ? AND value = ?", [
tagID,
monitorID,
Expand Down

0 comments on commit ec822e6

Please sign in to comment.