From ce258c2afd7ae829b73838d620836f76888c6adf Mon Sep 17 00:00:00 2001 From: dylan Date: Thu, 28 Mar 2024 13:00:48 -0700 Subject: [PATCH] chore: log which config file asconfig is using at the debug log level --- cmd/root.go | 2 +- integration_test.go | 24 +++++++++++------------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 115c8da..6330bf8 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -44,7 +44,7 @@ func newRootCmd() *cobra.Command { } if cfgFile != "" { - logger.Infof("Using config file: %s", cfgFile) + logger.Debugf("Using config file: %s", cfgFile) } lvl, err := cmd.Flags().GetString("log-level") diff --git a/integration_test.go b/integration_test.go index 8505be3..7732f28 100644 --- a/integration_test.go +++ b/integration_test.go @@ -1,5 +1,3 @@ -//go:build integration - package main import ( @@ -1017,23 +1015,23 @@ var validateTests = []validateTest{ expectError: true, source: filepath.Join(extraTestPath, "server64", "server64.yaml"), expectedResult: `context: namespaces.ns1 - - description: Additional property memory-size is not allowed, error-type: additional_property_not_allowed + - description: Additional property memory-size is not allowed, error-type: additional_property_not_allowed context: namespaces.ns1.index-type - - description: Additional property mounts-high-water-pct is not allowed, error-type: additional_property_not_allowed - - description: Additional property mounts-size-limit is not allowed, error-type: additional_property_not_allowed - - description: mounts-budget is required, error-type: required + - description: Additional property mounts-high-water-pct is not allowed, error-type: additional_property_not_allowed + - description: Additional property mounts-size-limit is not allowed, error-type: additional_property_not_allowed + - description: mounts-budget is required, error-type: required context: namespaces.ns1.sindex-type - - description: Additional property mounts-high-water-pct is not allowed, error-type: additional_property_not_allowed - - description: Additional property mounts-size-limit is not allowed, error-type: additional_property_not_allowed - - description: mounts-budget is required, error-type: required + - description: Additional property mounts-high-water-pct is not allowed, error-type: additional_property_not_allowed + - description: Additional property mounts-size-limit is not allowed, error-type: additional_property_not_allowed + - description: mounts-budget is required, error-type: required context: namespaces.ns1.storage-engine - - description: devices is required, error-type: required + - description: devices is required, error-type: required context: namespaces.ns2 - - description: Additional property memory-size is not allowed, error-type: additional_property_not_allowed + - description: Additional property memory-size is not allowed, error-type: additional_property_not_allowed context: namespaces.ns2.storage-engine - - description: devices is required, error-type: required + - description: devices is required, error-type: required context: service - - description: cluster-name is required, error-type: required + - description: cluster-name is required, error-type: required `, }, }