Browse Source

reenable addLogLine

Abhinav 1 năm trước cách đây
mục cha
commit
10937c9d55
1 tập tin đã thay đổi với 11 bổ sung11 xóa
  1. 11 11
      packages/shared/network/HTTPService.ts

+ 11 - 11
packages/shared/network/HTTPService.ts

@@ -1,5 +1,5 @@
 import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';
 import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';
-// import { addLogLine } from 'utils/logging';
+import { addLogLine } from '@ente/shared/logging';
 import { logError } from '@ente/shared/sentry';
 import { logError } from '@ente/shared/sentry';
 
 
 import { ApiError, CustomError, isApiErrorResponse } from '../error';
 import { ApiError, CustomError, isApiErrorResponse } from '../error';
@@ -68,19 +68,19 @@ class HTTPService {
                     // The request was made but no response was received
                     // The request was made but no response was received
                     // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
                     // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
                     // http.ClientRequest in node.js
                     // http.ClientRequest in node.js
-                    // addLogLine(
-                    //     'request failed- no response',
-                    //     `url: ${config.url}`,
-                    //     `method: ${config.method}`
-                    // );
+                    addLogLine(
+                        'request failed- no response',
+                        `url: ${config.url}`,
+                        `method: ${config.method}`
+                    );
                     return Promise.reject(error);
                     return Promise.reject(error);
                 } else {
                 } else {
                     // Something happened in setting up the request that triggered an Error
                     // Something happened in setting up the request that triggered an Error
-                    // addLogLine(
-                    //     'request failed- axios error',
-                    //     `url: ${config.url}`,
-                    //     `method: ${config.method}`
-                    // );
+                    addLogLine(
+                        'request failed- axios error',
+                        `url: ${config.url}`,
+                        `method: ${config.method}`
+                    );
                     return Promise.reject(error);
                     return Promise.reject(error);
                 }
                 }
             }
             }