Skip to content

Commit

Permalink
Revert "ref(dx): Only show the analytics notice once (#56757)"
Browse files Browse the repository at this point in the history
This reverts commit 0b31a76.

Co-authored-by: evanpurkhiser <1421724+evanpurkhiser@users.noreply.github.com>
  • Loading branch information
2 people authored and RaduW committed Sep 25, 2023
1 parent 9f730c4 commit e1ddf32
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/sentry/runner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import sentry_sdk

import sentry
from sentry.runner.settings import get_sentry_conf
from sentry.utils.imports import import_string

# We need to run this here because of a concurrency bug in Python's locale
Expand Down Expand Up @@ -176,16 +175,10 @@ def main():
logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.INFO)
logger = logging.getLogger(__name__)

# Only show analytics notice once
analytics_seen_file = os.path.join(get_sentry_conf(), "dev-analytics-notice-seen")
if not os.path.isfile(analytics_seen_file):
logger.info(
"The Sentry runner will report development issues to Sentry.io. "
"Use SENTRY_DEVENV_NO_REPORT to avoid reporting issues."
)
with open(analytics_seen_file, "w+") as file:
file.write("# This is an autogenerated file from the sentry command runner")

logger.info(
"The Sentry runner will report development issues to Sentry.io. "
"Use SENTRY_DEVENV_NO_REPORT to avoid reporting issues."
)
try:
func(**kwargs)
except Exception as e:
Expand Down

0 comments on commit e1ddf32

Please sign in to comment.