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

enh: log exception info (at debug) when we catch an exception in map_to_click handler #1552

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

yarikoptic
Copy link
Member

@Kevancic reported a crash where logs where pretty much useless as on the source/reason for exception:

2024-12-11T18:28:38-0500 [DEBUG   ] dandi 1351865:139891061004032 sub-I48/ses-SPIM/micr/sub-I48_ses-SPIM_sample-BrocaAreaS01_stain-Calretinin_SPIM.ome.zarr/0/1/51/23 - verified that has correct md5 5f7119e7acfa30675994984323f9632e
2024-12-11T18:28:38-0500 [DEBUG   ] dandi 1351865:139894478612224 sub-I48/ses-SPIM/micr/sub-I48_ses-SPIM_sample-BrocaAreaS01_stain-Calretinin_SPIM.ome.zarr/0/1/51/27 - verified that has correct md5 e2e128cea135ab4d19df53208c3d649e
2024-12-11T18:28:38-0500 [DEBUG   ] dandi 1351865:139891086182144 sub-I48/ses-SPIM/micr/sub-I48_ses-SPIM_sample-BrocaAreaS01_stain-Calretinin_SPIM.ome.zarr/0/1/51/26 - verified that has correct md5 09558a4cb0d70186b0a670bf6d3d7593
2024-12-11T18:28:38-0500 [WARNING ] urllib3.connectionpool 1351865:139890152695552 Connection pool is full, discarding connection: dandiarchive.s3.amazonaws.com. Connection pool size: 10
2024-12-11T18:28:38-0500 [INFO    ] dandi 1351865:139890152695552 File 0/1/51/20 in Zarr e58463c5-08d1-40a9-ae3f-0cd6a075e74d successfully downloaded
2024-12-11T18:28:38-0500 [DEBUG   ] dandi 1351865:139890152695552 sub-I48/ses-SPIM/micr/sub-I48_ses-SPIM_sample-BrocaAreaS01_stain-Calretinin_SPIM.ome.zarr/0/1/51/20.dandidownload - entered __exit__ with position 2223375 without any exception
2024-12-11T18:28:38-0500 [DEBUG   ] dandi 1351865:139890152695552 sub-I48/ses-SPIM/micr/sub-I48_ses-SPIM_sample-BrocaAreaS01_stain-Calretinin_SPIM.ome.zarr/0/1/51/20 - verified that has correct md5 b2a38860da19b022a7389ea1fc6c99e0
2024-12-11T18:28:38-0500 [WARNING ] urllib3.connectionpool 1351865:139889148417792 Connection pool is full, discarding connection: dandiarchive.s3.amazonaws.com. Connection pool size: 10
2024-12-11T18:28:38-0500 [WARNING ] urllib3.connectionpool 1351865:139891496982272 Connection pool is full, discarding connection: dandiarchive.s3.amazonaws.com. Connection pool size: 10
2024-12-11T18:28:38-0500 [INFO    ] dandi 1351865:139889148417792 File 0/1/51/25 in Zarr e58463c5-08d1-40a9-ae3f-0cd6a075e74d successfully downloaded
2024-12-11T18:28:38-0500 [DEBUG   ] dandi 1351865:139889148417792 sub-I48/ses-SPIM/micr/sub-I48_ses-SPIM_sample-BrocaAreaS01_stain-Calretinin_SPIM.ome.zarr/0/1/51/25.dandidownload - entered __exit__ with position 2178920 without any exception
2024-12-11T18:28:38-0500 [INFO    ] dandi 1351865:139891496982272 File 0/1/51/24 in Zarr e58463c5-08d1-40a9-ae3f-0cd6a075e74d successfully downloaded
2024-12-11T18:28:38-0500 [DEBUG   ] dandi 1351865:139891496982272 sub-I48/ses-SPIM/micr/sub-I48_ses-SPIM_sample-BrocaAreaS01_stain-Calretinin_SPIM.ome.zarr/0/1/51/24.dandidownload - entered __exit__ with position 2170317 without any exception
2024-12-11T18:28:38-0500 [DEBUG   ] dandi 1351865:139889148417792 sub-I48/ses-SPIM/micr/sub-I48_ses-SPIM_sample-BrocaAreaS01_stain-Calretinin_SPIM.ome.zarr/0/1/51/25 - verified that has correct md5 4bf60fea9c866f5fb7a6967854e8b02c
2024-12-11T18:28:38-0500 [DEBUG   ] dandi 1351865:139891496982272 sub-I48/ses-SPIM/micr/sub-I48_ses-SPIM_sample-BrocaAreaS01_stain-Calretinin_SPIM.ome.zarr/0/1/51/24 - verified that has correct md5 c805c4f34e250a813f2325741faceddc
2024-12-11T18:28:38-0500 [DEBUG   ] dandi 1351865:139894578401792 Caught exception 

May be with traceback logged we get more of useful information

…to_click handler

User reported a crash where logs where pretty much useless as on the
source/reason for exception:

    ...
    2024-12-11T18:28:38-0500 [DEBUG   ] dandi 1351865:139891496982272 sub-I48/ses-SPIM/micr/sub-I48_ses-SPIM_sample-BrocaAreaS01_stain-Calretinin_SPIM.ome.zarr/0/1/51/24 - verified that has correct md5 c805c4f34e250a813f2325741faceddc
    2024-12-11T18:28:38-0500 [DEBUG   ] dandi 1351865:139894578401792 Caught exception

May be with traceback logged we get more of useful information
@yarikoptic yarikoptic requested a review from jwodder December 13, 2024 01:29
@yarikoptic yarikoptic added the patch Increment the patch version when merged label Dec 13, 2024
Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.48%. Comparing base (3ea8c87) to head (d05c7f1).
Report is 9 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1552      +/-   ##
==========================================
- Coverage   88.49%   88.48%   -0.01%     
==========================================
  Files          78       78              
  Lines       10742    10742              
==========================================
- Hits         9506     9505       -1     
- Misses       1236     1237       +1     
Flag Coverage Δ
unittests 88.48% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yarikoptic yarikoptic merged commit dc938f6 into master Dec 13, 2024
24 of 26 checks passed
@yarikoptic yarikoptic deleted the enh-exc branch December 13, 2024 02:57
Copy link

🚀 PR was released in 0.66.2 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants