feat(ui): add runtime logger and replace console usage

This commit is contained in:
Shantur Rathore
2025-12-05 15:07:49 +00:00
parent 49143bd049
commit 971abe24d7
44 changed files with 406 additions and 138 deletions

View File

@@ -1,4 +1,7 @@
import { runtimeEnv } from "../runtime-env"
import { getLogger } from "../logger"
const log = getLogger("actions")
export async function restartCli(): Promise<boolean> {
try {
@@ -20,7 +23,7 @@ export async function restartCli(): Promise<boolean> {
return false
}
} catch (error) {
console.error("Failed to restart CLI", error)
log.error("Failed to restart CLI", error)
return false
}