Skip to content

Commit b5fbff5

Browse files
committed
Update index.ts
1 parent fb895da commit b5fbff5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class UP9Monitor {
2222
this.hostnameOverrides = options.hostnameOverrides ?? {};
2323
setInterval(this.poll, POLL_INTERVAL_MS);
2424

25-
this.requestLogger(require("http"), "http");
26-
this.requestLogger(require("https"), "https");
25+
this.createTappedModule(require("http"), "http");
26+
this.createTappedModule(require("https"), "https");
2727
}
2828

2929
poll = async () => {
@@ -79,7 +79,7 @@ class UP9Monitor {
7979
return getExpressMiddleware(this.sendMessage, this.serviceName);
8080
}
8181

82-
requestLogger = (httpModule, protocol) => {
82+
createTappedModule = (httpModule, protocol) => {
8383
httpModule.request = this.getHttpTappedFunc(httpModule.request, protocol);
8484
httpModule.get = this.getHttpTappedFunc(httpModule.get, protocol);
8585
}

0 commit comments

Comments
 (0)