refactor(core): remove util log initialization
This commit is contained in:
parent
ce69ddb88e
commit
8123247d7a
127 changed files with 356 additions and 714 deletions
3
packages/desktop/src/main/env.d.ts
vendored
3
packages/desktop/src/main/env.d.ts
vendored
|
|
@ -15,9 +15,6 @@ declare module "virtual:opencode-server" {
|
|||
export const get: typeof import("../../../opencode/dist/types/src/node").Config.get
|
||||
export type Info = import("../../../opencode/dist/types/src/node").Config.Info
|
||||
}
|
||||
export namespace Log {
|
||||
export const init: typeof import("../../../opencode/dist/types/src/node").Log.init
|
||||
}
|
||||
export namespace Database {
|
||||
export const getPath: typeof import("../../../opencode/dist/types/src/node").Database.getPath
|
||||
export const Client: typeof import("../../../opencode/dist/types/src/node").Database.Client
|
||||
|
|
|
|||
|
|
@ -57,8 +57,8 @@ async function start(command: StartCommand) {
|
|||
ensureLoopbackNoProxy()
|
||||
useSystemCertificates()
|
||||
useEnvProxy()
|
||||
const { Database, JsonMigration, Log, Server } = await import("virtual:opencode-server")
|
||||
await Log.init({ level: "WARN" })
|
||||
process.env.OPENCODE_LOG_LEVEL = "WARN"
|
||||
const { Database, JsonMigration, Server } = await import("virtual:opencode-server")
|
||||
|
||||
if (command.needsMigration) {
|
||||
await JsonMigration.run(drizzle({ client: Database.Client().$client }), {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue