@@ -35,13 +35,13 @@ export abstract class DBResourceNode extends AWSTreeNodeBase implements AWSResou
35
35
) {
36
36
super ( label , collapsibleState )
37
37
this . regionCode = client . regionCode
38
- getLogger ( ) . info ( `NEW DBResourceNode` )
38
+ getLogger ( ) . debug ( `NEW DBResourceNode` )
39
39
}
40
40
41
41
public isStatusRequiringPolling ( ) : boolean {
42
42
const currentStatus = this . status ?. toLowerCase ( )
43
43
const isProcessingStatus = currentStatus !== undefined && this . processingStatuses . has ( currentStatus )
44
- getLogger ( ) . info (
44
+ getLogger ( ) . debug (
45
45
`isStatusRequiringPolling (DBResourceNode):: Checking if status "${ currentStatus } " for ARN: ${ this . arn } requires polling: ${ isProcessingStatus } `
46
46
)
47
47
return isProcessingStatus
@@ -69,7 +69,7 @@ export abstract class DBResourceNode extends AWSTreeNodeBase implements AWSResou
69
69
70
70
public get isPolling ( ) : boolean {
71
71
const isPolling = DBResourceNode . globalPollingArns . has ( this . arn )
72
- getLogger ( ) . info ( `isPolling: ARN ${ this . arn } is ${ isPolling ? '' : 'not ' } being polled.` )
72
+ getLogger ( ) . debug ( `isPolling: ARN ${ this . arn } is ${ isPolling ? '' : 'not ' } being polled.` )
73
73
return isPolling
74
74
}
75
75
@@ -101,11 +101,11 @@ export abstract class DBResourceNode extends AWSTreeNodeBase implements AWSResou
101
101
const status = await this . getStatus ( )
102
102
if ( checkProcessingStatuses ) {
103
103
const isProcessingStatus = status !== undefined && this . processingStatuses . has ( status . toLowerCase ( ) )
104
- getLogger ( ) . info ( 'docdb: waitUntilStatusChangedToProcessingStatus: %O' , isProcessingStatus )
104
+ getLogger ( ) . debug ( 'docdb: waitUntilStatusChangedToProcessingStatus: %O' , isProcessingStatus )
105
105
return isProcessingStatus
106
106
} else {
107
107
const hasStatusChanged = status !== this . status
108
- getLogger ( ) . info ( 'docdb: waitUntilStatusChanged (status): %O' , hasStatusChanged )
108
+ getLogger ( ) . debug ( 'docdb: waitUntilStatusChanged (status): %O' , hasStatusChanged )
109
109
return hasStatusChanged
110
110
}
111
111
} ,
@@ -116,28 +116,28 @@ export abstract class DBResourceNode extends AWSTreeNodeBase implements AWSResou
116
116
}
117
117
118
118
public async trackChangesWithWaitProcessingStatus ( ) {
119
- getLogger ( ) . info (
119
+ getLogger ( ) . debug (
120
120
`Preparing to track changes with waiting a processing status for ARN: ${ this . arn } ; condition: ${ this . isPolling } ;`
121
121
)
122
122
if ( ! this . isPolling ) {
123
123
this . isPolling = true
124
124
await this . waitUntilStatusChanged ( true , 60000 , 1000 )
125
- getLogger ( ) . info ( `Tracking changes for a processing status wait is over` )
125
+ getLogger ( ) . debug ( `Tracking changes for a processing status wait is over` )
126
126
this . pollingSet . start ( this . arn )
127
- getLogger ( ) . info ( `Tracking changes for ARN: ${ this . arn } ; condition: ${ this . isPolling } ;` )
127
+ getLogger ( ) . debug ( `Tracking changes for ARN: ${ this . arn } ; condition: ${ this . isPolling } ;` )
128
128
} else {
129
- getLogger ( ) . info ( `ARN: ${ this . arn } already being tracked` )
129
+ getLogger ( ) . debug ( `ARN: ${ this . arn } already being tracked` )
130
130
}
131
131
}
132
132
133
133
public trackChanges ( ) {
134
- getLogger ( ) . info ( `Preparing to track immdiately for ARN: ${ this . arn } ; condition: ${ this . isPolling } ;` )
134
+ getLogger ( ) . debug ( `Preparing to track immdiately for ARN: ${ this . arn } ; condition: ${ this . isPolling } ;` )
135
135
if ( ! this . isPolling ) {
136
136
this . isPolling = true
137
137
this . pollingSet . start ( this . arn )
138
- getLogger ( ) . info ( `Tracking changes for ARN: ${ this . arn } ; condition: ${ this . isPolling } ;` )
138
+ getLogger ( ) . debug ( `Tracking changes for ARN: ${ this . arn } ; condition: ${ this . isPolling } ;` )
139
139
} else {
140
- getLogger ( ) . info ( `ARN: ${ this . arn } already being tracked` )
140
+ getLogger ( ) . debug ( `ARN: ${ this . arn } already being tracked` )
141
141
}
142
142
}
143
143
@@ -156,16 +156,16 @@ export abstract class DBResourceNode extends AWSTreeNodeBase implements AWSResou
156
156
private async updateNodeStatus ( ) {
157
157
const currentStatus = this . status
158
158
const newStatus = await this . getStatus ( )
159
- getLogger ( ) . info (
159
+ getLogger ( ) . debug (
160
160
`docdb: ${ this . arn } updateNodeStatus (new status): ${ newStatus } (old status): ${ currentStatus } `
161
161
)
162
162
if ( currentStatus !== newStatus ) {
163
- getLogger ( ) . info ( `docdb: ${ this . arn } updateNodeStatus - refreshing UI` )
163
+ getLogger ( ) . info ( `docdb: ${ this . arn } status: ${ newStatus } , refreshing UI` )
164
164
this . refreshTree ( )
165
165
}
166
166
if ( ! this . isStatusRequiringPolling ( ) ) {
167
- getLogger ( ) . info ( `docdb: ${ this . arn } updateNodeStatus - refreshing UI` )
168
- getLogger ( ) . info ( `pollingSet delete ${ this . arn } updateNodeStatus` )
167
+ getLogger ( ) . info ( `docdb: ${ this . arn } status: ${ newStatus } , refreshing UI` )
168
+ getLogger ( ) . debug ( `pollingSet delete ${ this . arn } updateNodeStatus` )
169
169
this . pollingSet . delete ( this . arn )
170
170
this . pollingSet . clearTimer ( )
171
171
this . isPolling = false
0 commit comments