Skip to content

Commit 287f283

Browse files
nogweiikevinmcconnell
authored andcommitted
don't hard code the default, use the defined constant
1 parent 796f0e7 commit 287f283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func NewConfig() (*Config, error) {
102102
HttpWriteTimeout: getEnvDuration("HTTP_WRITE_TIMEOUT", defaultHttpWriteTimeout),
103103

104104
LogLevel: logLevel,
105-
LogRequests: getEnvBool("LOG_REQUESTS", true),
105+
LogRequests: getEnvBool("LOG_REQUESTS", defaultLogRequests),
106106
}
107107

108108
config.ForwardHeaders = getEnvBool("FORWARD_HEADERS", !config.HasTLS())

0 commit comments

Comments
 (0)