Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Fix logger info

Morgan Deanb8c119b284fa
diff --git a/libs/computer/typescript/src/computer/index.ts b/libs/computer/typescript/src/computer/index.ts
index bbf1522461..b5a8bb04fb 100644
--- a/libs/computer/typescript/src/computer/index.ts
+++ b/libs/computer/typescript/src/computer/index.ts
@@ -8,6 +8,9 @@ import {
type LumeComputerConfig,
} from "./types";
import { applyDefaults } from "./defaults";
+import pino from "pino";
+
+export const logger = pino({ name: "computer" });
/**
* Factory class for creating the appropriate Computer instance
diff --git a/libs/computer/typescript/src/computer/providers/base.ts b/libs/computer/typescript/src/computer/providers/base.ts
index 36211ba3e4..036af3b6a0 100644
--- a/libs/computer/typescript/src/computer/providers/base.ts
+++ b/libs/computer/typescript/src/computer/providers/base.ts
@@ -1,10 +1,10 @@
+import { logger } from "../index";
import type {
BaseComputerConfig,
Display,
OSType,
VMProviderType,
} from "../types";
-import { computerLogger } from "../../util/logger";
/**
* Base Computer class with shared functionality
@@ -45,7 +45,7 @@ export abstract class BaseComputer {
* Shared method available to all computer types
*/
async disconnect(): Promise<void> {
- computerLogger.info(`Disconnecting from ${this.name}`);
+ logger.info(`Disconnecting from ${this.name}`);
// Implementation would go here
}