Skip to content

Commit

Permalink
do not log warning messages about cohesion in production
Browse files Browse the repository at this point in the history
  • Loading branch information
eessex committed Nov 23, 2020
1 parent 4ed7283 commit 9b0e3d6
Showing 1 changed file with 1 addition and 1 deletion.
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 9b0e3d6

Please sign in to comment.