Skip to content

Commit 4f8bf25

Browse files
committed
chore(ali-ecs): disable cache hit log
1 parent 788cfac commit 4f8bf25

File tree

1 file changed

+1
-2
lines changed
  • packages/ali-ecs/src/lib

1 file changed

+1
-2
lines changed

packages/ali-ecs/src/lib/ecs.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class ECSService {
153153
this.cleanCache()
154154
const node = this._getInstanceByIpFromCache(ip)
155155
if (node) {
156-
console.log(`getInstanceByIp from cache: ${ip}`)
156+
this.debug && console.log(`getInstanceByIp from cache: ${ip}`)
157157
return node
158158
}
159159

@@ -224,7 +224,6 @@ export class ECSService {
224224

225225
for (const inst of instances) {
226226
const ips = inst.publicIpAddress?.ipAddress
227-
// console.log(`_getInstanceByIp ips ${ip}`, ips)
228227
if (ips?.includes(ip)) {
229228
return inst
230229
}

0 commit comments

Comments
 (0)