File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1616from shapely .geometry import box , shape
1717from shapely .geometry .base import BaseGeometry
1818
19+ from emsarray .conventions ._registry import entry_point_conventions
20+
1921from .exceptions import CommandException
2022
2123cli_logger = logging .getLogger ('emsarray.cli' )
@@ -210,6 +212,13 @@ def set_verbosity(level: int) -> None:
210212 elif level >= 3 :
211213 level_str = 'DEBUG'
212214
215+ # Include logging handlers for all plugins
216+ entry_point_convention_modules = sorted ({
217+ convention .__module__
218+ for convention in entry_point_conventions ()
219+ if not convention .__module__ .startswith ('emsarray.' )
220+ })
221+
213222 logging .captureWarnings (True )
214223 logging .config .dictConfig ({
215224 'version' : 1 ,
@@ -239,6 +248,10 @@ def set_verbosity(level: int) -> None:
239248 'emsarray.cli.errors' : {
240249 'handlers' : ['error' ], 'level' : level_str , 'propagate' : False
241250 },
251+ ** {
252+ module : {'handlers' : ['console' ], 'level' : level_str }
253+ for module in entry_point_convention_modules
254+ },
242255 'py.warnings' : {'handlers' : ['console' ], 'level' : 'WARNING' },
243256 '__main__' : {'handlers' : ['console' ], 'level' : level_str },
244257 'shapely' : {'handlers' : [], 'level' : 60 },
You can’t perform that action at this time.
0 commit comments