Skip to content

Commit 22be97d

Browse files
committed
fix(cos): add remove success log
1 parent 7157d2c commit 22be97d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: IntegrationTest
1+
name: Test
22

33
on:
44
pull_request:
55
branches: [master]
66

77
jobs:
8-
IntegrationTest:
9-
name: Integration Tests
8+
Test:
9+
name: Tests
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout repository

src/modules/cos/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ class Cos {
725725
}
726726

727727
async remove(inputs = {}) {
728-
console.log(`Removing bucket from ${this.region}`);
728+
console.log(`Removing bucket ${inputs.bucket}`);
729729

730730
let detail;
731731
try {
@@ -751,6 +751,7 @@ class Cos {
751751
Region: this.region,
752752
Bucket: inputs.bucket,
753753
});
754+
console.log(`Remove bucket ${inputs.bucket} success`);
754755
} catch (e) {
755756
// why do this judgement again
756757
// because when requesting to delete, bucket may be deleted even though it exist before.

0 commit comments

Comments
 (0)