Skip to content

Commit fbede91

Browse files
authored
Merge pull request TrilonIO#30 from jycouet/master
Optional instrumentationKey in forRoot (with correct log)
2 parents a31de75 + 95e655d commit fbede91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app-insight.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export class AppInsightsService implements IAppInsights {
216216
console.warn('Angular application insights Error [downloadAndSetup]: ', ex);
217217
}
218218
} else {
219-
if (this.config.instrumentationKeySetlater) {
219+
if (!this.config.instrumentationKeySetlater) { // there is no this.config.instrumentationKey AND no this.config.instrumentationKeySetlater => Add log.
220220
console.warn('An instrumentationKey value is required to initialize AppInsightsService');
221221
}
222222
}

0 commit comments

Comments
 (0)