Skip to content

Commit df9dd9d

Browse files
committed
Remove event handler in base implementation.
1 parent 10c48e7 commit df9dd9d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/shared/sdk-client/src/LDClientImpl.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,13 @@ export default class LDClientImpl implements LDClient {
106106
this.diagnosticsManager,
107107
);
108108
this.emitter = new LDEmitter();
109-
this.emitter.on('change', (c: LDContext, changedKeys: string[]) => {
110-
this.logger.debug(`change: context: ${JSON.stringify(c)}, flags: ${changedKeys}`);
111-
});
112109
this.emitter.on('error', (c: LDContext, err: any) => {
113110
this.logger.error(`error: ${err}, context: ${JSON.stringify(c)}`);
114111
});
115112

116113
this.flagManager.on((context, flagKeys) => {
117114
const ldContext = Context.toLDContext(context);
115+
this.logger.debug(`change: context: ${JSON.stringify(ldContext)}, flags: ${flagKeys}`);
118116
this.emitter.emit('change', ldContext, flagKeys);
119117
});
120118

0 commit comments

Comments
 (0)