Skip to content

Commit

Permalink
Attempting to improve logging for debugging. RE:natcap#1580
Browse files Browse the repository at this point in the history
  • Loading branch information
phargogh committed Jan 31, 2025
1 parent 279bc4f commit dde4a29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions codesigning/enqueue-current-windows-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ version=$(python -m setuptools_scm)
url_base=$(make -C .. print-DIST_URL_BASE | awk ' { print $3 } ')
url="${url_base}/workbench/invest_${version}_workbench_win32_x64.exe"

echo "Enqueuing URL ${url}"
python enqueue-binary.py "${url}"
4 changes: 3 additions & 1 deletion codesigning/gcp-cloudfunc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def main(request):
storage_client = storage.Client()
bucket = storage_client.bucket(CODESIGN_DATA_BUCKET)

logging.debug('Data POSTed: %s', data)

if data['action'] == 'dequeue':
with get_lock():
queuefile = bucket.blob('queue.json')
Expand All @@ -87,7 +89,7 @@ def main(request):

elif data['action'] == 'enqueue':
url = data['url']
logging.info('Attempting to enqueue url %s', url)
logging.info('Attempting to enqueue url" %s', url)

if not url.endswith('.exe'):
logging.info("Rejecting URL because it doesn't end in .exe")
Expand Down

0 comments on commit dde4a29

Please sign in to comment.