Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACRFD-20: Remove unused code. Improve logging. #211

Merged
merged 2 commits into from
May 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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