Skip to content

Make logging of unknown fields in OME metadata less severe - #75

Merged
normanrz merged 8 commits into
zarr-developers:mainfrom
stefanhahmann:stefanhahmann-patch-1
Sep 8, 2026
Merged

Make logging of unknown fields in OME metadata less severe#75
normanrz merged 8 commits into
zarr-developers:mainfrom
stefanhahmann:stefanhahmann-patch-1

Conversation

@stefanhahmann

Copy link
Copy Markdown
Contributor

This warning fired e.g. when reading https://livingobjects.ebi.ac.uk/idr/zarr/v0.5/idr0033A/BR00109990_C2.zarr/0 Since, this log can actually be ignored, I propose to lower the severity of the log.

grafik

This warning fired e.g. when reading https://livingobjects.ebi.ac.uk/idr/zarr/v0.5/idr0033A/BR00109990_C2.zarr/0
Since, this log can actually be ignored, I propose to lower the severity of the log.
@stefanhahmann
stefanhahmann marked this pull request as ready for review May 7, 2026 11:46
@normanrz

normanrz commented May 8, 2026

Copy link
Copy Markdown
Member

Hmm. Why is it a problem that this is a warning?
I am not sure it is a solved question whether it is permissible to have additional keys in the OME-Zarr metadata. I would lean towards notifying users about such additional metadata because the additional keys could have a semantic meaning.

@stefanhahmann

Copy link
Copy Markdown
Contributor Author

When using the library for reading datasets in FIJI a warning log brings the console to the front with some red message inside, giving the user the impression that something went wrong, which actually can be ignored.
Could we agree on info? That would still be visible in the FIJI console, but not in red and it would not automatically open the console.

@normanrz

Copy link
Copy Markdown
Member

Yeah that sounds reasonable.

Comment thread src/main/java/dev/zarr/zarrjava/experimental/ome/OmeObjectMappers.java Outdated
normanrz and others added 2 commits September 8, 2026 12:23
Follow-up to the PR discussion: FINE hides the message entirely, while
WARNING pops up the FIJI console in red. INFO keeps the notice visible
without signalling an error.

Also renames the handler (no longer warning-level) and updates the tests
to capture INFO records, which fixes the failing build.

Co-Authored-By: Claude Opus 5 <[email protected]>
Reverts the level back to FINE as originally proposed; the test now sets
the logger level explicitly so the FINE records are still captured.

Co-Authored-By: Claude Opus 5 <[email protected]>
@normanrz
normanrz merged commit c4e19fe into zarr-developers:main Sep 8, 2026
3 checks passed
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