Skip to content

Commit c17417d

Browse files
committed
convert to console.error
1 parent 43bd3c5 commit c17417d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flagsmith-core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,11 +836,11 @@ const Flagsmith = class {
836836
if (this.enableAnalytics) {
837837
const events = JSON.stringify(this.getState().evaluationEvent);
838838
AsyncStorage!.setItem(FlagsmithEvent, events)
839-
.catch((e) => this.log("Exception setting item in async storage", e));
839+
.catch((e) => console.error("Flagsmith: Error setting item in async storage", e));
840840
}
841841
}
842842

843-
private evaluateFlag = (key: string, method: 'VALUE' | 'ENABLED') => {
843+
private evaluateFlag =(key: string, method: 'VALUE' | 'ENABLED') => {
844844
if (this.datadogRum) {
845845
if (!this.datadogRum!.client!.addFeatureFlagEvaluation) {
846846
console.error('Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.');

0 commit comments

Comments
 (0)