Files
Sankofa/api/src/lib/replace-console-logs.sh
defiQUG 9daf1fd378 Apply Composer changes: comprehensive API updates, migrations, middleware, and infrastructure improvements
- Add comprehensive database migrations (001-024) for schema evolution
- Enhance API schema with expanded type definitions and resolvers
- Add new middleware: audit logging, rate limiting, MFA enforcement, security, tenant auth
- Implement new services: AI optimization, billing, blockchain, compliance, marketplace
- Add adapter layer for cloud integrations (Cloudflare, Kubernetes, Proxmox, storage)
- Update Crossplane provider with enhanced VM management capabilities
- Add comprehensive test suite for API endpoints and services
- Update frontend components with improved GraphQL subscriptions and real-time updates
- Enhance security configurations and headers (CSP, CORS, etc.)
- Update documentation and configuration files
- Add new CI/CD workflows and validation scripts
- Implement design system improvements and UI enhancements
2025-12-12 18:01:35 -08:00

18 lines
585 B
Bash
Executable File

#!/bin/bash
# Script to replace console.log/error/warn with logger in API services
# This is a helper script - manual review recommended
find api/src -type f -name "*.ts" -not -path "*/node_modules/*" -not -path "*/__tests__/*" | while read file; do
# Skip if already has logger import
if grep -q "from '../lib/logger'" "$file" || grep -q "from './lib/logger'" "$file"; then
continue
fi
# Check if file uses console
if grep -q "console\." "$file"; then
echo "File uses console: $file"
# Note: Manual replacement recommended for proper import paths
fi
done