diff --git a/config.go b/config.go index c5e842d6f7..c1f4a873cc 100644 --- a/config.go +++ b/config.go @@ -19,6 +19,7 @@ const ( optionPrefix = "agent." logLevelFlag = optionPrefix + "log" devModeFlag = optionPrefix + "devmode" + sandboxFlag = optionPrefix + "sandbox" kernelCmdlineFile = "/proc/cmdline" ) @@ -94,6 +95,8 @@ func (c *agentConfig) parseCmdlineOption(option string) error { if level == logrus.DebugLevel { debug = true } + case sandboxFlag: + agentLog = agentLog.WithField("sandbox", split[valuePosition]) default: if strings.HasPrefix(split[optionPosition], optionPrefix) { return grpcStatus.Errorf(codes.NotFound, "Unknown option %s", split[optionPosition])