refactor(core): remove util log initialization

This commit is contained in:
opencode-agent[bot] 2026-06-05 14:30:25 +00:00
commit 8123247d7a
127 changed files with 356 additions and 714 deletions

View file

@ -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

View file

@ -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 }), {