Skip to content

Commit

Permalink
chore: remove temp debug logs (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz authored Jun 12, 2024
1 parent a953e34 commit 8cf359d
Showing 1 changed file with 1 addition and 12 deletions.
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

0 comments on commit 8cf359d

Please sign in to comment.