Skip to content

Commit

Permalink
Merge pull request #211 from NickPhura/master
Browse files Browse the repository at this point in the history
NOBUG: Remove unused code.  Improve logging.
  • Loading branch information
NickPhura authored May 21, 2019
2 parents 0e63844 + 1966176 commit dbeb215
Show file tree
Hide file tree
Showing 12 changed files with 57 additions and 752 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ npm-debug.log
testem.log
/typings
package-lock.json
seed/package-lock.json
yarn-error.log
yarn.lock
seed/yarn.lock
debug.log

# Project Files
Expand Down
8 changes: 4 additions & 4 deletions api/controllers/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ exports.protectedDelete = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down Expand Up @@ -443,7 +443,7 @@ exports.protectedPut = function(args, res, next) {
defaultLog.info('o:', o);
return Actions.sendResponse(res, 200, o);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down Expand Up @@ -476,7 +476,7 @@ exports.protectedPublish = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down Expand Up @@ -507,7 +507,7 @@ exports.protectedUnPublish = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down
6 changes: 3 additions & 3 deletions api/controllers/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ exports.protectedPut = function(args, res, next) {
defaultLog.info('o:', o);
return Actions.sendResponse(res, 200, o);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down Expand Up @@ -309,7 +309,7 @@ exports.protectedPublish = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down Expand Up @@ -337,7 +337,7 @@ exports.protectedUnPublish = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down
8 changes: 4 additions & 4 deletions api/controllers/commentperiod.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ exports.protectedPut = function(args, res, next) {
defaultLog.info('o:', o);
return Actions.sendResponse(res, 200, o);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down Expand Up @@ -186,7 +186,7 @@ exports.protectedDelete = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down Expand Up @@ -214,7 +214,7 @@ exports.protectedPublish = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand All @@ -240,7 +240,7 @@ exports.protectedUnPublish = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down
8 changes: 4 additions & 4 deletions api/controllers/decision.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ exports.protectedPut = function(args, res, next) {
defaultLog.info('o:', o);
return Actions.sendResponse(res, 200, o);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down Expand Up @@ -174,7 +174,7 @@ exports.protectedDelete = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand All @@ -201,7 +201,7 @@ exports.protectedPublish = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand All @@ -227,7 +227,7 @@ exports.protectedUnPublish = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down
8 changes: 4 additions & 4 deletions api/controllers/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ exports.protectedDelete = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand All @@ -368,7 +368,7 @@ exports.protectedPublish = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand All @@ -394,7 +394,7 @@ exports.protectedUnPublish = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down Expand Up @@ -446,7 +446,7 @@ exports.protectedPut = function(args, res, next) {
// defaultLog.info("o:", o);
return Actions.sendResponse(res, 200, o);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down
6 changes: 3 additions & 3 deletions api/controllers/feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ exports.protectedPut = function(args, res, next) {
defaultLog.info('o:', o);
return Actions.sendResponse(res, 200, o);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down Expand Up @@ -174,7 +174,7 @@ exports.protectedPublish = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand All @@ -200,7 +200,7 @@ exports.protectedUnPublish = function(args, res, next) {
}
);
} else {
defaultLog.info("Couldn't find that object!");
defaultLog.warn("Couldn't find that object!");
return Actions.sendResponse(res, 404, {});
}
});
Expand Down
Loading

0 comments on commit dbeb215

Please sign in to comment.