ARM-software / lisa

Linux Integrated System Analysis
Apache License 2.0
200 stars 119 forks source link

lisa._unshare: Ensure logging is setup before unpickling function #2151

Closed douglas-raillard-arm closed 9 months ago

douglas-raillard-arm commented 9 months ago

FIX

Ensure the environment (logging) is setup correctly before attempting to unpickle the function and its arguments. Otherwise, unpickling the arguments will trigger init/new calls that will run with the default logging conf rather than what we want.