You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LogLevelstring`long:"log-level" description:"The level of AWS Lambda Runtime Interface Emulator logs to display. Can also be set by the environment variable 'LOG_LEVEL'. Defaults to the value 'info'."`
25
26
InitCachingEnabledbool`long:"enable-init-caching" description:"Enable support for Init Caching"`
27
+
// Do not have a default value so we do not need to keep it in sync with the default value in lambda/rapidcore/sandbox_builder.go
28
+
RuntimeAPIAddressstring`long:"runtime-api-address" description:"The address of the AWS Lambda Runtime API to communicate with the Lambda execution environment."`
29
+
RuntimeInterfaceEmulatorAddressstring`long:"runtime-interface-emulator-address" default:"0.0.0.0:8080" description:"The address for the AWS Lambda Runtime Interface Emulator to accept HTTP request upon."`
26
30
}
27
31
28
32
funcmain() {
29
33
// More frequent GC reduces the tail latencies, equivalent to export GOGC=33
30
34
debug.SetGCPercent(33)
31
35
32
36
opts, args:=getCLIArgs()
33
-
rapidcore.SetLogLevel(opts.LogLevel)
37
+
38
+
logLevel:="info"
39
+
40
+
// If you specify an option by using a parameter on the CLI command line, it overrides any value from either the corresponding environment variable.
log.WithError(err).Fatalf("The command line value for \"--runtime-interface-emulator-address\" is not a valid network address %q.", opts.RuntimeInterfaceEmulatorAddress)
0 commit comments