Skip to content

Commit d56a658

Browse files
Ensure arguments are included in log messages when using decorators. (#11154)
For #11153.
1 parent 1226822 commit d56a658

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/2 Fixes/11153.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure arguments are included in log messages when using decorators.

src/client/common/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function trace(message: string, options: LogOptions = LogOptions.None, logLevel?
295295
returnValue ? 'truthy' : 'falsy'
296296
} return value`
297297
);
298-
if ((options && LogOptions.Arguments) === LogOptions.Arguments) {
298+
if ((options & LogOptions.Arguments) === LogOptions.Arguments) {
299299
messagesToLog.push(argsToLogString(args));
300300
}
301301
if ((options & LogOptions.ReturnValue) === LogOptions.ReturnValue) {

0 commit comments

Comments
 (0)