Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shaw/logger fixes #587

Merged
merged 9 commits into from
Nov 25, 2024
12 changes: 1 addition & 11 deletions packages/core/src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import settings from "./settings.ts";
import { Logger } from "tslog";

interface IElizaLogger extends Logger<IElizaLogger> {
progress(message: string): void;
}

class ElizaLogger implements IElizaLogger {
class ElizaLogger {
constructor() {
// Check if we're in Node.js environment
this.isNode =
Expand Down Expand Up @@ -180,7 +175,6 @@ class ElizaLogger implements IElizaLogger {
}
}

// @ts-expect-error- custom implementation
log(...strings) {
this.#logWithStyle(strings, {
fg: "white",
Expand All @@ -190,7 +184,6 @@ class ElizaLogger implements IElizaLogger {
});
}

// @ts-expect-error- custom implementation
warn(...strings) {
this.#logWithStyle(strings, {
fg: "yellow",
Expand All @@ -200,7 +193,6 @@ class ElizaLogger implements IElizaLogger {
});
}

// @ts-expect-error- custom implementation
error(...strings) {
this.#logWithStyle(strings, {
fg: "red",
Expand All @@ -210,7 +202,6 @@ class ElizaLogger implements IElizaLogger {
});
}

// @ts-expect-error- custom implementation
info(...strings) {
this.#logWithStyle(strings, {
fg: "blue",
Expand All @@ -220,7 +211,6 @@ class ElizaLogger implements IElizaLogger {
});
}

// @ts-expect-error- custom implementation
debug(...strings) {
if (!this.verbose) return;
this.#logWithStyle(strings, {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-coinbase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"peerDependencies": {
"onnxruntime-node": "1.20.1",
"whatwg-url": "7.1.0",
"vue": "^3.2.26"
"vue": "3.5.13"
},
"trustedDependencies": {
"onnxruntime-node": "^1.20.0",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading