Ensure combined appenders respect product id too
This commit is contained in:
parent
be26cf639c
commit
8ec61e8c86
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,8 @@ export interface ITelemetryAppender {
|
|||
export function combinedAppender(...appenders: ITelemetryAppender[]): ITelemetryAppender {
|
||||
return {
|
||||
log: (e, d) => appenders.forEach(a => a.log(e, d)),
|
||||
flush: () => Promises.settled(appenders.map(a => a.flush()))
|
||||
flush: () => Promises.settled(appenders.map(a => a.flush())),
|
||||
productIdentifier: appenders.find(a => a.productIdentifier !== undefined)?.productIdentifier
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue