sou 7 лет назад
Родитель
Сommit
aa05ba96fd
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      lib/routes/page.js

+ 1 - 4
lib/routes/page.js

@@ -263,9 +263,6 @@ module.exports = function(crowi, app) {
         renderVars.path = page.path;
         renderVars.revision = page.revision;
         renderVars.author = page.revision.author;
-        console.log(renderVars.path);
-        console.log(renderVars.revision);
-        console.log(renderVars.author);
 
         return Revision.findRevisionList(page.path, {})
         .then(function(tree) {
@@ -314,6 +311,7 @@ module.exports = function(crowi, app) {
       const pageName = originalUrl.replace(/^\/([^/]*).*$/, '$1');
       Page.findPage(`/${pageName}/_template`)
       .then(function(page) {
+        debug('Page not found', path);
         console.log('---------------------------template found');
         pageTeamplate = 'customlayout-selector/not_found';
       })
@@ -863,7 +861,6 @@ module.exports = function(crowi, app) {
     const pagePath = req.query.path || null;
     const pageId = req.query.page_id || null; // TODO: handling
     const revisionId = req.query.revision_id || null;
-    console.log('-------path-------', req.query.path);
 
     if (!pageId && !pagePath) {
       return res.json(ApiResponse.error(new Error('Parameter path or page_id is required.')));