algoliasearch-client-swift icon indicating copy to clipboard operation
algoliasearch-client-swift copied to clipboard

SearchConfiguration.logLevel has no effect

Open antiraum opened this issue 1 year ago • 0 comments

After updating to v8.20.0 we noticed that all request and response data is logged with the log type/level debug.

Changing the SearchConfiguration.logLevel has no effect. Logs of all levels/types are generated independent of the setting value.

var config = SearchConfiguration(applicationID: "xxx", apiKey: "yyy")
config.logLevel = .error
let client = SearchClient(configuration: config)

We were expecting that the log level acted as a minimum level and logs of a lower level are not generated.

antiraum avatar Feb 12 '24 10:02 antiraum