INNER CODE UNIT · Python

filter

Chanchaldhiman/CANviz · backend/canviz/server.py:35

    def filter(self, record: logging.LogRecord) -> bool:
        msg = record.getMessage()
        return not any(p in msg for p in self._MUTED)

logging.getLogger("uvicorn.access").addFilter(_SuppressPollLog())

@asynccontextmanager
async def lifespan(app: FastAPI):
    # startup - connections opened on demand via /connect
    yield
    # shutdown - clean up bus and broadcaster gracefully
    await broadcaster.stop()
    await bus_manager._hard_shutdown()


app = FastAPI(
    title="CANviz",
    description="Open-source browser-based CAN bus analyzer",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…