Skip to content

Commit

Permalink
pencilblue#970 cleanup to remove console.log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhyder committed Dec 6, 2016
1 parent 9d4966a commit cb5f67f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/http/middleware/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ module.exports = function(pb) {
try {
cookies.set(pb.SessionHandler.COOKIE_NAME, req.session.uid, pb.SessionHandler.getSessionCookie(req.session));
}
catch (e) {console.log(e);
catch (e) {
pb.log.error('RequestHandler: Failed to set cookie: %s', e.stack);
}
}
Expand Down
4 changes: 2 additions & 2 deletions include/http/request_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ module.exports = function RequestHandlerModule(pb) {
* @static
* @method isAdminURL
* @param {String} urlPath
* @return {boolean}
* @return {boolean}
*/
RequestHandler.isAdminURL = function(urlPath) {
if (urlPath !== null) {
Expand All @@ -1544,7 +1544,7 @@ module.exports = function RequestHandlerModule(pb) {
if (index === 0 && urlPath.length > 0) {
urlPath = urlPath.substring(1);
}
console.log(urlPath);

var pieces = urlPath.split('/');
return pieces.length > 0 && pieces[0].indexOf('admin') === 0;
}
Expand Down

0 comments on commit cb5f67f

Please sign in to comment.