Skip to content

Commit 7b6bcb1

Browse files
committed
BaseController - Don't auto log method calls starting with an underscore
1 parent 5aa07c3 commit 7b6bcb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/base_controller.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ function logProperty(prop: string): boolean {
6161
return false;
6262
}
6363

64+
if (/^_.*?$/.test(prop)) {
65+
return false;
66+
}
6467
if (/^.*?Target(s)?$/.test(prop)) {
6568
return false;
6669
}

0 commit comments

Comments
 (0)