فهرست منبع

error handling

kaori 4 سال پیش
والد
کامیت
c2e8451ebc
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      packages/app/src/components/InAppNotification/NotificationContent.tsx

+ 4 - 1
packages/app/src/components/InAppNotification/NotificationContent.tsx

@@ -1,9 +1,12 @@
 import React from 'react';
 import { PagePathLabel } from '@growi/ui';
 import { IInAppNotification } from '../../interfaces/in-app-notification';
+import loggerFactory from '~/utils/logger';
 
 import FormattedDistanceDate from '../FormattedDistanceDate';
 
+const logger = loggerFactory('growi:NotificationContent');
+
 interface Props {
   actionUsers: string
   notification: IInAppNotification
@@ -19,7 +22,7 @@ const notificationClickHandler = async(pagePath) => {
     window.location.href = pagePath;
   }
   catch (err) {
-    // logger.error(err);
+    logger.error(err);
   }
 };