LogCacheProxyStatus logs whether the cache proxy integration is enabled. Called once from main on every duckgres process (control plane and workers) so the startup logs clearly show the cache state.
()
| 64 | nodeIP := os.Getenv(nodeIPEnvVar) |
| 65 | if nodeIP == "" { |
| 66 | nodeIP = "localhost" |
| 67 | } |
| 68 | return nodeIP + ":" + cacheProxyS3Port |
| 69 | } |
| 70 | |
| 71 | // LogCacheProxyStatus logs whether the cache proxy integration is enabled. |
| 72 | // Called once from main on every duckgres process (control plane and workers) |
| 73 | // so the startup logs clearly show the cache state. |
| 74 | func LogCacheProxyStatus() { |
| 75 | if !cacheEnabled() { |
| 76 | slog.Info("Cache proxy integration disabled (DUCKGRES_CACHE_ENABLED not 'true').") |
| 77 | return |
| 78 | } |
| 79 | slog.Info("Cache proxy integration enabled.", |
no test coverage detected