2024-08-01T10:00:00.123Z [INFO] Server starting on port 8080
2024-08-01T10:00:00.234Z [INFO] Loading configuration from /etc/app/config.yaml
2024-08-01T10:00:00.456Z [INFO] Database pool initialized (min=5, max=20)
2024-08-01T10:00:00.567Z [INFO] Redis connection established at redis:6379
2024-08-01T10:00:00.789Z [INFO] Cache warmed up (2,847 entries loaded)
2024-08-01T10:00:01.001Z [INFO] Health check endpoint registered at /health
2024-08-01T10:00:01.123Z [INFO] API routes loaded (47 endpoints)
2024-08-01T10:00:01.234Z [INFO] Server ready to accept connections
2024-08-01T10:00:05.000Z [DEBUG] Health check passed
2024-08-01T10:00:10.000Z [DEBUG] Health check passed
2024-08-01T10:00:15.000Z [DEBUG] Health check passed
2024-08-01T10:00:20.000Z [DEBUG] Health check passed
2024-08-01T10:00:25.000Z [DEBUG] Health check passed
2024-08-01T10:00:30.000Z [DEBUG] Health check passed
2024-08-01T10:00:35.000Z [DEBUG] Health check passed
2024-08-01T10:00:40.000Z [DEBUG] Health check passed
2024-08-01T10:00:45.000Z [DEBUG] Health check passed
2024-08-01T10:00:50.000Z [DEBUG] Health check passed
2024-08-01T10:00:55.000Z [DEBUG] Health check passed
2024-08-01T10:01:00.000Z [DEBUG] Health check passed
2024-08-01T10:01:02.345Z [INFO] Incoming request: GET /api/users from 192.168.1.100
2024-08-01T10:01:02.456Z [DEBUG] Query executed: SELECT * FROM users (12ms)
2024-08-01T10:01:02.567Z [INFO] Response sent: 200 OK (222ms)
2024-08-01T10:01:05.000Z [DEBUG] Health check passed
2024-08-01T10:01:10.000Z [DEBUG] Health check passed
2024-08-01T10:01:12.789Z [INFO] Incoming request: POST /api/users from 192.168.1.101
2024-08-01T10:01:12.890Z [WARN] Request body size exceeds soft limit (2.1MB > 1MB)
2024-08-01T10:01:13.012Z [INFO] User created: id=42, username=newuser
2024-08-01T10:01:13.123Z [INFO] Response sent: 201 Created (334ms)
2024-08-01T10:01:15.000Z [DEBUG] Health check passed
2024-08-01T10:01:20.000Z [DEBUG] Health check passed
2024-08-01T10:01:25.000Z [DEBUG] Health check passed
2024-08-01T10:01:30.000Z [DEBUG] Health check passed
2024-08-01T10:01:32.456Z [ERROR] Connection timeout to redis:6379 (attempt 1/3)
2024-08-01T10:01:33.567Z [WARN] Retrying Redis connection (attempt 2/3)
2024-08-01T10:01:34.678Z [WARN] Retrying Redis connection (attempt 3/3)
2024-08-01T10:01:35.789Z [ERROR] Failed to reconnect to Redis after 3 attempts
Traceback (most recent call last):
  File "/app/cache.py", line 42, in reconnect
    self.client = Redis(host=self.host, port=self.port, timeout=5)
  File "/usr/lib/python3.12/site-packages/redis/client.py", line 195, in __init__
    self.connection_pool.get_connection()
ConnectionRefusedError: [Errno 111] Connection refused
2024-08-01T10:01:35.890Z [WARN] Falling back to in-memory cache
2024-08-01T10:01:36.001Z [INFO] In-memory cache initialized (LRU, max=10000)
2024-08-01T10:01:40.000Z [DEBUG] Health check passed
2024-08-01T10:01:45.000Z [DEBUG] Health check passed
2024-08-01T10:01:50.000Z [DEBUG] Health check passed
2024-08-01T10:01:55.000Z [DEBUG] Health check passed
2024-08-01T10:02:00.000Z [DEBUG] Health check passed
2024-08-01T10:02:01.234Z [INFO] Incoming request: GET /api/users/42 from 192.168.1.100
2024-08-01T10:02:01.345Z [INFO] Cache miss for user:42 (using in-memory fallback)
2024-08-01T10:02:01.456Z [DEBUG] Query executed: SELECT * FROM users WHERE id=42 (8ms)
2024-08-01T10:02:01.567Z [INFO] Response sent: 200 OK (333ms)
2024-08-01T10:02:05.000Z [DEBUG] Health check passed
2024-08-01T10:02:10.000Z [DEBUG] Health check passed
2024-08-01T10:02:15.000Z [DEBUG] Health check passed
