From c2a1c1feb4793c78984fa0e013690a31ed9ba831 Mon Sep 17 00:00:00 2001 From: Hetu Nandu Date: Mon, 5 Jul 2021 11:19:43 +0530 Subject: [PATCH] Don't log debug level logs in prod (#5527) --- app/client/build.sh | 2 +- app/client/package.json | 2 +- app/client/public/index.html | 10 ++--- .../CommentsCarouselModal.tsx | 2 +- .../TableComponent/CommonUtilities.test.ts | 1 - .../GlobalSearch/parseDocumentationContent.ts | 3 +- app/client/src/configs/index.ts | 2 +- .../Editor/APIEditor/ResultPagination.tsx | 2 - app/client/src/pages/Editor/Canvas.tsx | 5 ++- .../Explorer/Widgets/WidgetContextMenu.tsx | 1 - .../CustomizedDropdown/dropdownHelpers.tsx | 3 +- app/client/src/sagas/CommentSagas/index.ts | 4 +- app/client/src/sagas/GlobalSearchSagas.ts | 3 +- app/client/src/utils/AppsmithUtils.tsx | 6 ++- app/client/src/utils/storage.ts | 39 +++++++++---------- .../src/widgets/ListWidget/ListWidget.tsx | 2 +- .../TableWidget/TablePropertyPaneConfig.ts | 2 - app/client/src/widgets/TableWidget/derived.js | 8 +++- 18 files changed, 51 insertions(+), 46 deletions(-) diff --git a/app/client/build.sh b/app/client/build.sh index c668865fc0..2f625ec5c4 100755 --- a/app/client/build.sh +++ b/app/client/build.sh @@ -6,7 +6,7 @@ GIT_SHA=$(eval git rev-parse HEAD) echo $GIT_SHA echo "Sentry Auth Token: $SENTRY_AUTH_TOKEN" -REACT_APP_SENTRY_RELEASE=$GIT_SHA EXTEND_ESLINT=true craco --max-old-space-size=4096 build --config craco.build.config.js +REACT_APP_SENTRY_RELEASE=$GIT_SHA REACT_APP_CLIENT_LOG_LEVEL=ERROR EXTEND_ESLINT=true craco --max-old-space-size=4096 build --config craco.build.config.js rm ./build/static/js/*.js.map echo "build finished" diff --git a/app/client/package.json b/app/client/package.json index 07c7b910f9..dbaf77633f 100644 --- a/app/client/package.json +++ b/app/client/package.json @@ -154,7 +154,7 @@ }, "scripts": { "analyze": "source-map-explorer 'build/static/js/*.js'", - "start": "BROWSER=none EXTEND_ESLINT=true REACT_APP_ENVIRONMENT=DEVELOPMENT HOST=dev.appsmith.com craco start", + "start": "BROWSER=none EXTEND_ESLINT=true REACT_APP_ENVIRONMENT=DEVELOPMENT REACT_APP_CLIENT_LOG_LEVEL=debug HOST=dev.appsmith.com craco start", "build": "./build.sh", "build-local": "craco --max-old-space-size=4096 build --config craco.build.config.js", "build-staging": "REACT_APP_ENVIRONMENT=STAGING craco --max-old-space-size=4096 build --config craco.build.config.js", diff --git a/app/client/public/index.html b/app/client/public/index.html index df6675bb58..a022cc7b1c 100755 --- a/app/client/public/index.html +++ b/app/client/public/index.html @@ -34,10 +34,10 @@
-
+