spsdk icon indicating copy to clipboard operation
spsdk copied to clipboard

Don’t enable logging when used as a library

Open robin-nitrokey opened this issue 1 year ago • 1 comments

Release 1.9.0 adds a logger for the spsdk module even if it is only used as a library. I think this should only be the case for the spsdk application or if requested explicitly.

https://github.com/nxp-mcuxpresso/spsdk/blob/cca8819bf19900cd3ead21690501fd5309875e5d/spsdk/init.py#L111-L115

robin-nitrokey avatar Apr 05 '23 15:04 robin-nitrokey

Hello Robin, thanks for reporting this. It will be solved in next release by removing the logger handling from SPSDK init module. Colored logger handler will be added only to CLI applications or if requested explicitly.

marekvi95 avatar May 04 '23 11:05 marekvi95