defang icon indicating copy to clipboard operation
defang copied to clipboard

Config values confusing output logging.

Open Chrisyhjiang opened this issue 1 year ago • 1 comments

Screenshot 2024-07-31 at 4 07 56 PM

Note the 2 messages: service "rag-chatbot": environment variable "OPENAI_API_KEY" overridden by config The "OPENAI_API_KEY" variable is not set. Defaulting to a blank string.

is confusing when deploying. For context, this is after doing defang config set OPENAI_API_KEY.

Chrisyhjiang avatar Jul 31 '24 23:07 Chrisyhjiang

Yeah, we should clean up the warnings/errors for this. The idea is that defang config always overrides environment that was set in the compose.yaml, but we should show more than one message for that case (and even then the message could be clearer.)

How is this affected by the interpolation feature? @nullfunc

lionello avatar Sep 30 '24 03:09 lionello

"...Defaulting to a blank string." will no longer show since interpolation was implemented.

nullfunc avatar Oct 17 '24 22:10 nullfunc