Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr committed May 7, 2024
1 parent 16c48d3 commit 8b8817c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
5 changes: 5 additions & 0 deletions apps/zui/src/electron/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import debug from "why-is-node-running"
import {main} from "./run-main/run-main"
import log from "electron-log"

Expand All @@ -6,3 +7,7 @@ process.on("unhandledRejection", (e) => {
})

main()

setTimeout(() => {
debug() // logs out active handles that are keeping node running
}, 15_000)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"serve": "^14.2.0",
"ts-jest": "^29.0.5",
"ts-node": "10.9.1",
"typescript": "5.1.5"
"typescript": "5.1.5",
"why-is-node-running": "^2.2.2"
},
"packageManager": "yarn@3.5.0",
"workspaces": [
Expand Down
1 change: 0 additions & 1 deletion packages/zed-node/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export class Client extends BaseClient {
const res = await this.send({
path: `/pool/${poolId}/branch/${encodeURIComponent(branch)}`,
method: 'POST',
// eslint-disable-next-line
// @ts-ignore
body: data,
duplex: 'half',
Expand Down
27 changes: 27 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16977,6 +16977,13 @@ __metadata:
languageName: node
linkType: hard

"siginfo@npm:^2.0.0":
version: 2.0.0
resolution: "siginfo@npm:2.0.0"
checksum: 8aa5a98640ca09fe00d74416eca97551b3e42991614a3d1b824b115fc1401543650914f651ab1311518177e4d297e80b953f4cd4cd7ea1eabe824e8f2091de01
languageName: node
linkType: hard

"signal-exit@npm:^3.0.0, signal-exit@npm:^3.0.2, signal-exit@npm:^3.0.3, signal-exit@npm:^3.0.7":
version: 3.0.7
resolution: "signal-exit@npm:3.0.7"
Expand Down Expand Up @@ -17246,6 +17253,13 @@ __metadata:
languageName: node
linkType: hard

"stackback@npm:0.0.2":
version: 0.0.2
resolution: "stackback@npm:0.0.2"
checksum: 2d4dc4e64e2db796de4a3c856d5943daccdfa3dd092e452a1ce059c81e9a9c29e0b9badba91b43ef0d5ff5c04ee62feb3bcc559a804e16faf447bac2d883aa99
languageName: node
linkType: hard

"stat-mode@npm:^1.0.0":
version: 1.0.0
resolution: "stat-mode@npm:1.0.0"
Expand Down Expand Up @@ -18952,6 +18966,18 @@ __metadata:
languageName: node
linkType: hard

"why-is-node-running@npm:^2.2.2":
version: 2.2.2
resolution: "why-is-node-running@npm:2.2.2"
dependencies:
siginfo: ^2.0.0
stackback: 0.0.2
bin:
why-is-node-running: cli.js
checksum: 50820428f6a82dfc3cbce661570bcae9b658723217359b6037b67e495255409b4c8bc7931745f5c175df71210450464517cab32b2f7458ac9c40b4925065200a
languageName: node
linkType: hard

"wide-align@npm:^1.1.0, wide-align@npm:^1.1.2":
version: 1.1.5
resolution: "wide-align@npm:1.1.5"
Expand Down Expand Up @@ -19257,6 +19283,7 @@ __metadata:
ts-node: 10.9.1
tslib: ^2.3.0
typescript: 5.1.5
why-is-node-running: ^2.2.2
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 8b8817c

Please sign in to comment.