optimizely / fullstack-labs

Apache License 2.0
13 stars 8 forks source link

logLevel is not honored by instance #10

Open KyruCabading opened 5 years ago

KyruCabading commented 5 years ago

For React SDK. logLevel is not honored when setting up the instance.

const optimizely = optimizelySDK.createInstance({
  sdkKey: OPTIMIZELY_SDK_KEY,
  // Log Level settings [0, 1, 2, 3, 4]
  // https://github.com/optimizely/node-sdk/blob/master/lib/utils/enums/index.js#L20-L26
  logLevel: 0
})

Still displays console logs when running.

jordangarcia commented 5 years ago

Hi @KyruCabading, to clarify your question. Is the problem that its not respecting the log level at all or is it not allow you to set a PER instance log level?