Skip to content

log_decorator.py

rerun.log.log_decorator

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!).