Skip to content

Log at warn only if all supports failed#2036

Merged
petebankhead merged 2 commits intoqupath:mainfrom
alanocallaghan:collect-exceptions-then-log
Nov 10, 2025
Merged

Log at warn only if all supports failed#2036
petebankhead merged 2 commits intoqupath:mainfrom
alanocallaghan:collect-exceptions-then-log

Conversation

@alanocallaghan
Copy link
Contributor

From discussion in #2035. This improves the logging for image server providers, only warning if no supported servers can open and then warn logging all exceptions encountered, and debug logging exceptions in the normal case, where advanced users/developers may want to view the exceptions but in normal use they are irrelevant.

@petebankhead
Copy link
Member

Looks fine to me, although I can't figure out a way to have it called - any suggestions?

Seems safe enough to just merge, but I haven't been able to check what is actually logged. When I attempt to open a .czi image on my Apple Silicon Mac it's travelling down some other code path, so I don't see how the output from this looks.

@petebankhead petebankhead merged commit 937c31c into qupath:main Nov 10, 2025
3 checks passed
@alanocallaghan
Copy link
Contributor Author

I ran into it by declaring an image server that claims to have top tier support for czi files but doesn't actually work 🙈 I'll retest that and report back

@alanocallaghan alanocallaghan deleted the collect-exceptions-then-log branch November 10, 2025 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants