From f5b88ce1bb017a40fb986fe359b09cfa861c8525 Mon Sep 17 00:00:00 2001 From: Mark Lopez Date: Wed, 5 Oct 2022 10:29:25 -0500 Subject: [PATCH] Added support for setting log level via environment variables. --- src/Contrast.K8s.AgentOperator/Properties/launchSettings.json | 4 +++- src/Contrast.K8s.AgentOperator/nlog.config | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Contrast.K8s.AgentOperator/Properties/launchSettings.json b/src/Contrast.K8s.AgentOperator/Properties/launchSettings.json index 6135598d..da74e622 100644 --- a/src/Contrast.K8s.AgentOperator/Properties/launchSettings.json +++ b/src/Contrast.K8s.AgentOperator/Properties/launchSettings.json @@ -8,7 +8,9 @@ "CONTRAST_WEBHOOK_HOSTS": "contrast-agent-operator,contrast-agent-operator.contrast-agent-operator.svc,contrast-agent-operator.contrast-agent-operator.svc.cluster.local", "CONTRAST_DEFAULT_REGISTRY": "contrast", "CONTRAST_SETTLE_DURATION": "2", - "CONTRAST_DEVELOPMENT": "true" + "CONTRAST_DEVELOPMENT": "true", + "CONTRAST_LOG_LEVEL": "Info", + "DOTNET_GCHeapHardLimit": "402653184" // Mimic a container with a 512Mi limit. That said, not sure if this works. }, "applicationUrl": "https://localhost:5001" } diff --git a/src/Contrast.K8s.AgentOperator/nlog.config b/src/Contrast.K8s.AgentOperator/nlog.config index 113bc1f9..46a07b55 100644 --- a/src/Contrast.K8s.AgentOperator/nlog.config +++ b/src/Contrast.K8s.AgentOperator/nlog.config @@ -31,6 +31,6 @@ - +