Skip to content

Commit

Permalink
chore: log which config file asconfig is using at the debug log level
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-spike committed Mar 28, 2024
1 parent 126bd71 commit ce258c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
24 changes: 11 additions & 13 deletions integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build integration

package main

import (
Expand Down Expand Up @@ -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
`,
},
}
Expand Down

0 comments on commit ce258c2

Please sign in to comment.