Просмотр исходного кода

Merge pull request #9476 from overleaf/ta-jpa-best-subscription-logging

Log usersBestSubscription Errors

GitOrigin-RevId: 8f626fb7ecef19fb6b6d79238643504b047b20ef
Timothée Alby 4 лет назад
Родитель
Сommit
9f09c335cc
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      services/web/app/src/Features/Project/ProjectController.js

+ 4 - 0
services/web/app/src/Features/Project/ProjectController.js

@@ -451,6 +451,10 @@ const ProjectController = {
             (err, subscription) => {
               if (err) {
                 // do not fail loading the project list when fetching the best subscription fails
+                logger.error(
+                  { userId, err },
+                  'Could not get usersBestSubscription'
+                )
                 return cb(null, { type: 'error' })
               }
               cb(null, subscription)