Skip to content

log_decorator.py

rerun.log.log_decorator

class RerunWarning

Bases: Warning

A custom warning class that we use to identify warnings that are emitted by the Rerun SDK itself.

def log_decorator(func)

A decorator we add to all our logging function.

It does two things: * It early-outs if logging is disabled * It catches any exceptions and logs them

The latter is important in order not to crash the users application just because they misused the Rerun API (or because we have a bug!).