Skip to content

Commit d3c7962

Browse files
authored
Merge pull request #186 from deploymenttheory/dev
Adjust config validation func to support struct changes
2 parents 19c08ae + 3c5798a commit d3c7962

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

httpclient/client_configuration.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ func validateMandatoryConfiguration(config *ClientConfig) error {
181181

182182
// Check for mandatory fields related to the client options
183183
if config.ClientOptions.Logging.LogLevel == "" {
184-
missingFields = append(missingFields, "ClientOptions.LogLevel")
184+
missingFields = append(missingFields, "ClientOptions.Logging.LogLevel")
185185
}
186186
if config.ClientOptions.Logging.LogOutputFormat == "" {
187-
missingFields = append(missingFields, "ClientOptions.LogOutputFormat")
187+
missingFields = append(missingFields, "ClientOptions.Logging.LogOutputFormat")
188188
}
189189
if config.ClientOptions.Logging.LogConsoleSeparator == "" {
190-
missingFields = append(missingFields, "ClientOptions.LogConsoleSeparator")
190+
missingFields = append(missingFields, "ClientOptions.Logging.LogConsoleSeparator")
191191
}
192192

193193
// Check for either OAuth credentials pair or Username and Password pair

0 commit comments

Comments
 (0)