(env: NodeJS.ProcessEnv)
| 142 | } |
| 143 | |
| 144 | function parseLoggingConfig(env: NodeJS.ProcessEnv): LoggingConfig { |
| 145 | return { |
| 146 | level: parseLogLevel(env.DEVSPACE_LOG_LEVEL), |
| 147 | format: parseLogFormat(env.DEVSPACE_LOG_FORMAT), |
| 148 | requests: env.DEVSPACE_LOG_REQUESTS === undefined ? true : parseBoolean(env.DEVSPACE_LOG_REQUESTS), |
| 149 | assets: parseBoolean(env.DEVSPACE_LOG_ASSETS), |
| 150 | toolCalls: env.DEVSPACE_LOG_TOOL_CALLS === undefined ? true : parseBoolean(env.DEVSPACE_LOG_TOOL_CALLS), |
| 151 | shellCommands: parseBoolean(env.DEVSPACE_LOG_SHELL_COMMANDS), |
| 152 | trustProxy: parseBoolean(env.DEVSPACE_TRUST_PROXY), |
| 153 | }; |
| 154 | } |
| 155 | |
| 156 | function parseWidgetMode(value: string | undefined): WidgetMode { |
| 157 | if (!value || value === "full") return "full"; |
no test coverage detected