Skip to main content

setup_logging

Function setup_logging 

Source
pub fn setup_logging(
    verbose: bool,
    quiet: bool,
    suppress_chat_template_warnings: bool,
) -> Result<()>
Expand description

Setup logging based on verbosity level.

suppress_chat_template_warnings is used by the interactive run UX: template fallback diagnostics are useful in server logs, but they should not be printed in the middle of a user-facing REPL turn.