MCPcopy Create free account
hub / github.com/PostHog/duckgres / LogCacheProxyStatus

Function LogCacheProxyStatus

duckdbservice/cache_proxy.go:66–76  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.
74func 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.",

Callers 2

mainFunction · 0.92
mainFunction · 0.92

Calls 3

cacheEnabledFunction · 0.85
cacheProxyHealthURLFunction · 0.85
cacheProxyS3AddrFunction · 0.85

Tested by

no test coverage detected