Skip to content

Commit

Permalink
Merge pull request #6706 from artsy/log-analytics
Browse files Browse the repository at this point in the history
chore: Do not log warning messages about cohesion in production
  • Loading branch information
joeyAghion authored and icirellik committed Nov 24, 2020
2 parents 4ed7283 + 9b0e3d6 commit abeb8a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
"htmlparser2": "3.10.1",
"lodash": "4.17.13",
"moment": "2.22.2",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-test-renderer": "16.8.6",
"react-is": "16.8.3",
"react-test-renderer": "16.8.6",
"react": "16.8.6",
"regenerator-runtime": "0.13.5",
"superagent": "3.8.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/getContextPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const formatOwnerTypes = (path: string) => {
break
}

if (!OwnerType[formattedType]) {
if (!OwnerType[formattedType] && sd.SHOW_ANALYTICS_CALLS) {
console.warn(
`OwnerType ${formattedType} is not part of @artsy/cohesion's schema.`
)
Expand Down

0 comments on commit abeb8a8

Please sign in to comment.