Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove temp debug logs #9

Merged
merged 3 commits into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions tubular/scripts/frontend_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,23 +274,12 @@ def _upload_js_sourcemaps(self, app_dist):
# Could not determine appropriate service or version for app; skipping.
return

# [DEBUG] Temporarily log the current working directory
cwd = os.getcwd()
self.LOG(f'[DEBUG] Current working directory: {cwd}')

# [DEBUG] Temporarily log the files in `app_dist` to observe which files are returned.
dist_files = os.listdir(app_dist)
self.LOG(f'[DEBUG] app_dist contents: {dist_files}')

# [DEBUG] Temporarily log the files in current working directory to observe which files are returned.
cwd_files = os.listdir(cwd)
self.LOG(f'[DEBUG] current working directory contents: {cwd_files}')

command_args = ' '.join([
f'--service="{service}"',
f'--release-version="{version}"',
f'--project-path="{self.app_name}/"',
'--minified-path-prefix="/"', # Sourcemaps are relative to the root when deployed
'--disable-git', # Disable Datadog's git integration as the current working directory is not a git repo
])
self.LOG('Uploading source maps to Datadog for app {}.'.format(self.app_name))
proc = subprocess.Popen(
Expand Down
Loading