truncate and log error instead of exception