Skip to content

Commit 1115f7a

Browse files
committed
docs: update code example in logger.md
Remove unnecessary `apply()` from the code example
1 parent 4c31b40 commit 1115f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/logger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ import { ConsoleLogger } from '@nestjs/common';
102102
export class MyLogger extends ConsoleLogger {
103103
error(message: any, stack?: string, context?: string) {
104104
// add your tailored logic here
105-
super.error.apply(this, arguments);
105+
super.error(...arguments);
106106
}
107107
}
108108
```

0 commit comments

Comments
 (0)