diff options
author | Rajamohan Raj <rajamohan.raj@intel.com> | 2020-08-29 02:47:00 +0000 |
---|---|---|
committer | Rajamohan Raj <rajamohan.raj@intel.com> | 2020-09-09 21:25:53 +0000 |
commit | 4759e43ff7f29727477b0d928047bf5ca283cef1 (patch) | |
tree | ebed9009ab8bcb28aeb07b495eab08a161150299 /src/orchestrator/pkg/infra/config | |
parent | bca6932e54ff0495947d8a4f1862339a69d386f8 (diff) |
Add log level support for orchestrator
In this patch, a new config item for log-level
is added, default log-level is set as "warn",
for detailed logs, set log-level as "info"
Issue-ID: MULTICLOUD-1200
Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com>
Change-Id: I3205ce110a492ecc6a7c680e3d35e173a5624bb0
Diffstat (limited to 'src/orchestrator/pkg/infra/config')
-rw-r--r-- | src/orchestrator/pkg/infra/config/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/orchestrator/pkg/infra/config/config.go b/src/orchestrator/pkg/infra/config/config.go index fca8bfbd..43191489 100644 --- a/src/orchestrator/pkg/infra/config/config.go +++ b/src/orchestrator/pkg/infra/config/config.go @@ -44,6 +44,7 @@ type Configuration struct { GrpcServerNameOverride string `json:"grpc-server-name-override"` ServicePort string `json:"service-port"` KubernetesLabelName string `json:"kubernetes-label-name"` + LogLevel string `json:"log-level"` } // Config is the structure that stores the configuration @@ -98,6 +99,8 @@ func defaultConfiguration() *Configuration { GrpcServerNameOverride: "", ServicePort: "9015", KubernetesLabelName: "orchestrator.io/rb-instance-id", + LogLevel: "warn", + } } |