itizawa 5 лет назад
Родитель
Сommit
96fed9895a
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/server/service/page.js

+ 4 - 4
src/server/service/page.js

@@ -61,7 +61,7 @@ class PageService {
     );
 
     if (isRecursively) {
-      this.duplicateStream(page, newPagePath, user);
+      this.duplicateDescendantsWithStream(page, newPagePath, user);
     }
 
     // take over tags
@@ -111,7 +111,7 @@ class PageService {
 
   }
 
-  async duplicateStream(page, newPagePath, user) {
+  async duplicateDescendantsWithStream(page, newPagePath, user) {
     const Page = this.crowi.model('Page');
     const Revision = this.crowi.model('Revision');
     const newPagePathPrefix = newPagePath;
@@ -142,7 +142,7 @@ class PageService {
         try {
           count += batch.length;
           await duplicateDescendants(batch, user, pathRegExp, newPagePathPrefix, pathRevisionMapping);
-          logger.info(`Adding pages progressing: (count=${count})`);
+          logger.debug(`Adding pages progressing: (count=${count})`);
         }
         catch (err) {
           logger.error('addAllPages error on add anyway: ', err);
@@ -151,7 +151,7 @@ class PageService {
         callback();
       },
       final(callback) {
-        logger.info(`Adding pages has completed: (totalCount=${count})`);
+        logger.debug(`Adding pages has completed: (totalCount=${count})`);
 
         callback();
       },