Skip to main content

Module log

Module log 

Source
Expand description

The debug switch behind every backend’s tagged line. The verbosity switch behind every backend’s tagged line.

What an operator reads back from a user is printed plainly: one line per capture start, encoder choice, zero-copy or readback decision, and fallback, tagged [X11], [Wayland], [HostCapture], or [pixelflux] on stdout, with warnings and errors on stderr. The mechanics behind those lines (each dmabuf import, the CUDA device enumeration, the per-second rate counters, an in-place reconfigure) go through debug! and print only once the switch is on: a capture whose CaptureSettings.debug_logging is set turns it on for the process (selkies passes its own --debug there), and PIXELFLUX_DEBUG=1 in the environment does the same for standalone use.

Functions§

debug_enabled
Whether debug lines print: the last capture’s setting, or PIXELFLUX_DEBUG.
set_debug
Turn the debug lines on or off for the process.