We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe4e73a commit c803194Copy full SHA for c803194
packages/logger/src/Logger.ts
@@ -174,7 +174,7 @@ class Logger implements ClassThatLogs {
174
* @returns {void}
175
*/
176
public addPersistentLogAttributes(attributes?: LogAttributes): void {
177
- this.persistentLogAttributes = merge(attributes, this.getPersistentLogAttributes());
+ merge(this.persistentLogAttributes, attributes);
178
}
179
180
/**
@@ -362,7 +362,7 @@ class Logger implements ClassThatLogs {
362
363
private addToPowertoolLogData(...attributesArray: Array<Partial<PowertoolLogData>>): void {
364
attributesArray.forEach((attributes: Partial<PowertoolLogData>) => {
365
- this.powertoolLogData = merge(attributes, this.getPowertoolLogData());
+ merge(this.powertoolLogData, attributes);
366
});
367
368
0 commit comments