Skip to content

Commit 4021c7f

Browse files
committed
fix: when killing profile status watcher, log to debug
This is mostly for debugging, i.e. showing the output of the subprocess kills. So we should emit it to the debug stream.
1 parent b90cfb6 commit 4021c7f

File tree

1 file changed

+3
-2
lines changed
  • plugins/plugin-codeflare/src/tray/watchers/profile

1 file changed

+3
-2
lines changed

plugins/plugin-codeflare/src/tray/watchers/profile/status.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
import Debug from "debug"
1718
import { spawn } from "child_process"
1819
import { encodeComponent } from "@kui-shell/core"
1920

@@ -60,13 +61,13 @@ export default class ProfileStatusWatcher {
6061
try {
6162
process.kill(-job.pid) // kill the process group e.g. for pipes
6263
} catch (err) {
63-
console.error("error killing process group " + -job.pid, err)
64+
Debug("codeflare")("error killing process group " + -job.pid, err)
6465
}
6566

6667
try {
6768
job.kill()
6869
} catch (err) {
69-
console.error("error killing process " + job.pid, err)
70+
Debug("codeflare")("error killing process " + job.pid, err)
7071
}
7172
})
7273

0 commit comments

Comments
 (0)