Smart Error Logging with Rate Limiting