pub fn truncate_sql_for_logging(sql: String) -> String
Truncates SQL text to MAX_LOGGED_SQL_LEN bytes for a log line, noting the original length.
MAX_LOGGED_SQL_LEN