Skip to content

Commit

Permalink
Adding log_debug to settings overwriting
Browse files Browse the repository at this point in the history
  • Loading branch information
gselzer committed Sep 13, 2022
1 parent ed868fc commit f901740
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/napari_imagej/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

import confuse

from napari_imagej.utilities.logging import log_debug

__version__ = "0.0.1.dev0"


Expand Down Expand Up @@ -64,6 +66,10 @@ def _validate_setting(self, setting: str, value: Any, strict=True):
"for more information."
)
else: # Assign a reasonable default
log_debug(
"ImageJ2 must be run headlessly on MacOS. Reconfiguring "
"jvm_mode to headless"
)
self["jvm_mode"] = "headless"


Expand Down

0 comments on commit f901740

Please sign in to comment.