You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Both persistentLogAttributes and persistentKeys options are provided. Use only persistentKeys as persistentLogAttributes is deprecated.`
1070
+
this.warn(
1071
+
'Both persistentLogAttributes and persistentKeys options were provided. Using persistentKeys as persistentLogAttributes is deprecated and will be removed in future releases'
'Both persistentLogAttributes and persistentKeys options are provided. Use only persistentKeys as persistentLogAttributes is deprecated.'
519
+
// Act
520
+
newLogger(loggerOptionsasConstructorOptions);
521
+
522
+
// Assess
523
+
expect(warningSpy).toHaveBeenCalledTimes(1);
524
+
expect(warningSpy).toHaveBeenCalledWith(
525
+
expect.stringContaining(
526
+
'Both persistentLogAttributes and persistentKeys options were provided. Using persistentKeys as persistentLogAttributes is deprecated and will be removed in future releases'
527
+
)
518
528
);
529
+
// Cleanup
530
+
warningSpy.mockRestore();
519
531
});
520
532
521
533
test('when a custom environment is passed, returns a Logger instance with the correct properties',()=>{
0 commit comments