Remove queries and connection log entries from production and staging logs