Skip to content

Commit

Permalink
fix(SDK - 3413) : log level check removed from define
Browse files Browse the repository at this point in the history
  • Loading branch information
KambleSonam committed Jan 24, 2024
1 parent 43e7bcf commit c4e4803
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
6 changes: 1 addition & 5 deletions clevertap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clevertap.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clevertap.min.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions src/clevertap.js
Original file line number Diff line number Diff line change
Expand Up @@ -827,11 +827,7 @@ export default class CleverTap {
}

defineVariable (name, defaultValue) {
if (this.#logger.logLevel === 4) {
return Variable.define(name, defaultValue, this.#variableStore)
} else {
this.#logger.error('App log level is not set to 4')
}
return Variable.define(name, defaultValue, this.#variableStore)
}

async syncVariables (onSyncSuccess, onSyncFailure) {
Expand Down

0 comments on commit c4e4803

Please sign in to comment.