Skip to main content

truncate_sql_for_logging

Function truncate_sql_for_logging 

Source
pub fn truncate_sql_for_logging(sql: String) -> String
Expand description

Truncates SQL text to MAX_LOGGED_SQL_LEN bytes for a log line, noting the original length.