Skip to content

Commit 240fec6

Browse files
Log sdk version
1 parent 1cb9085 commit 240fec6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/logger/messages/info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const codesInfo: [number, string][] = codesWarn.concat([
1111
[c.IMPRESSION, c.LOG_PREFIX_IMPRESSIONS_TRACKER +'Feature flag: %s. Key: %s. Evaluation: %s. Label: %s'],
1212
[c.IMPRESSION_QUEUEING, c.LOG_PREFIX_IMPRESSIONS_TRACKER +'Queueing corresponding impression.'],
1313
[c.NEW_SHARED_CLIENT, 'New shared client instance created.'],
14-
[c.NEW_FACTORY, 'New Split SDK instance created.'],
14+
[c.NEW_FACTORY, 'New Split SDK instance created. %s'],
1515
[c.EVENTS_TRACKER_SUCCESS, c.LOG_PREFIX_EVENTS_TRACKER + 'Successfully queued %s'],
1616
[c.IMPRESSIONS_TRACKER_SUCCESS, c.LOG_PREFIX_IMPRESSIONS_TRACKER + 'Successfully stored %s impression(s).'],
1717
[c.USER_CONSENT_UPDATED, 'UserConsent: consent status changed from %s to %s.'],

src/sdkFactory/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export function sdkFactory(params: ISdkFactoryParams): SplitIO.ISDK | SplitIO.IA
113113
initCallbacks.length = 0;
114114
}
115115

116-
log.info(NEW_FACTORY);
116+
log.info(NEW_FACTORY, [settings.version]);
117117

118118
// @ts-ignore
119119
return objectAssign({

0 commit comments

Comments
 (0)