Upgrading loguru 0.5 to 0.6
Breaking0.5.3 → 0.6.0Breaking1Security1Changed2Fixed1Other1
SecurityRemoves internal use of pickle.loads(), fixing a security vulnerability referenced as CVE-2022-0329.CVE-2022-0329 ↗
BreakingUpgrade verdict
1 breaking change and a security fix.
In plain terms
- You can no longer register an async log handler with enqueue=True outside a running event loop.
- A security flaw in how the library loaded some internal data has been removed.
Must act 2 items need code or config changes
What you must change
Breaking1
Removes the ability to add a coroutine sink with enqueue=True when loop=None and no event loop is running.
enqueueloopSecurity1
Removes internal use of pickle.loads(), fixing a security vulnerability referenced as CVE-2022-0329.
pickle.loads()API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
method Logger.catch(exception: Union[Type[BaseException], Tuple[Type[BaseException], ...]]=…, *, level: Union[str, int]=…, reraise: bool=…, onerror: Optional[Callable[[BaseException], None]]=…, exclude: Optional[Union[Type[BaseException], Tuple[Type[BaseException], ...]]]=…, message: str=…) -> Catcher | (exception: _F) -> _F → method Logger.catch(exception: Union[Type[BaseException], Tuple[Type[BaseException], ...]]=…, *, level: Union[str, int]=…, reraise: bool=…, onerror: Optional[Callable[[BaseException], None]]=…, exclude: Optional[Union[Type[BaseException], Tuple[Type[BaseException], ...]]]=…, default: Any=…, message: str=…) -> Catcher | (exception: _F) -> _F