helpers: make copy of snakemake.config to avoid non-serializable JSON
This commit is contained in:
parent
31bc87adba
commit
060bc49223
@ -29,7 +29,7 @@ def configure_logging(snakemake, skip_handlers=False):
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
kwargs = snakemake.config.get('logging', dict())
|
kwargs = snakemake.config.get('logging', dict()).copy()
|
||||||
kwargs.setdefault("level", "INFO")
|
kwargs.setdefault("level", "INFO")
|
||||||
|
|
||||||
if skip_handlers is False:
|
if skip_handlers is False:
|
||||||
|
Loading…
Reference in New Issue
Block a user