8000 feat: Prefer environment variable than config or console argument · symfony-cli/symfony-cli@91696a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 91696a4

Browse files
committed
feat: Prefer environment variable than config or console argument
1 parent 66fe833 commit 91696a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commands/local_server_start.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ var localServerStartCmd = &console.Command{
176176

177177
// If 'SSLKEYLOGFILE' environment variable is set, uses this as a destination of TLS key log.
178178
// In this context, the name 'SSLKEYLOGFILE' is common, so using 'SSL' instead of 'TLS' name.
179-
// The key log file from the console argument or YAML config is preferred than the environment variable.
180-
if path := os.Getenv("SSLKEYLOGFILE"); path != "" && config.TlsKeyLogFile == "" {
179+
// This environment variable is preferred than the key log file from the console argument.
180+
if path := os.Getenv("SSLKEYLOGFILE"); path != "" {
181181
config.TlsKeyLogFile = path
182182
}
183183

0 commit comments

Comments
 (0)
0