INNER CODE UNIT · Python

filter

pathwaycom/llm-app · serviette/indexer/main.py:118

    def filter(self, record: logging.LogRecord) -> bool:
        return not self._IDLE.search(record.getMessage())


def main(argv: list[str] | None = None) -> None:
    parser = argparse.ArgumentParser(prog="serviette indexer")
    parser.add_argument("--config", required=True, help="Path to the YAML config file")
    parser.add_argument(
        "--log-level", default="INFO", help="Logging level (default: INFO)"
    )
    args = parser.parse_args(argv)

    logging.basicConfig(level=args.log_level.upper())
    if logging.getLogger().getEffectiveLevel() > logging.DEBUG:
        # The engine reports every persisted snapshot chunk at INFO
        # ("Persisting a chunk of 105 entries (2100 -> 551 bytes)") — a line
        # every few seconds even when nothing changes, and nothing a user can
        # act on. Keep it, and the idle heartbeats, for --log-level DEBUG only.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…