Skip to content

Commit dd8df46

Browse files
committed
feat(edge): debug logging in logcat
- bump @smartthings/plugin-cli-edge - (lib) bump axios to non-vulnerable minor version
1 parent a17472b commit dd8df46

File tree

4 files changed

+98
-58
lines changed

4 files changed

+98
-58
lines changed

package-lock.json

Lines changed: 92 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"@oclif/plugin-plugins": "^1.10.1",
6767
"@smartthings/cli-lib": "^0.0.0-pre.33",
6868
"@smartthings/core-sdk": "^1.12.1",
69-
"@smartthings/plugin-cli-edge": "^1.5.0",
69+
"@smartthings/plugin-cli-edge": "^1.7.0",
7070
"aws-sdk": "^2.690.0",
7171
"generator-smartthings": "^1.5.0",
7272
"inquirer": "^8.1.2",

packages/lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@oclif/errors": "1.3.5",
2626
"@smartthings/core-sdk": "^1.12.1",
2727
"@types/eventsource": "^1.1.5",
28-
"axios": "^0.21.1",
28+
"axios": "^0.21.4",
2929
"chalk": "^4.1.0",
3030
"cli-table": "^0.3.1",
3131
"cli-ux": "^5.6.3",

packages/lib/src/sse-command.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,16 @@ export abstract class SseCommand extends APICommand {
6161
try {
6262
this._source?.close()
6363
} catch (error) {
64-
this.logger.warn(`Error during SseCommand cleanup. ${error.message ?? error}`)
64+
this.logger.warn(`Error during SseCommand teardown. ${error.message ?? error}`)
6565
}
6666
}
6767

6868
async init(): Promise<void> {
6969
await super.init()
7070

71-
handleSignals(() => {
71+
handleSignals(signal => {
72+
this.logger.debug(`handling ${signal} and tearing down SseCommand`)
73+
7274
this.teardown()
7375
})
7476
}

0 commit comments

Comments
 (0)