Skip to content

Upgrading loguru 0.5 to 0.6

Breaking0.5.3 → 0.6.0Breaking1Security1Changed2Fixed1Other1

BreakingUpgrade verdict

1 breaking change and a security fix.

  • 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.
2 items need code or config changes
Breaking1
Removes the ability to add a coroutine sink with enqueue=True when loop=None and no event loop is running.
enqueueloop
Security1
Removes internal use of pickle.loads(), fixing a security vulnerability referenced as CVE-2022-0329.
pickle.loads()

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