Skip to content

Commit f7d871f

Browse files
committed
Merge branch 'ollama-fix' of https://github.com/yodamaster726/eliza into shaw/logger-fixes
2 parents d84cd63 + 8618d66 commit f7d871f

File tree

2 files changed

+1
-32573
lines changed

2 files changed

+1
-32573
lines changed

packages/core/src/logger.ts

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import settings from "./settings.ts";
2-
import { Logger } from "tslog";
32

4-
interface IElizaLogger extends Logger<IElizaLogger> {
5-
progress(message: string): void;
6-
}
7-
8-
class ElizaLogger implements IElizaLogger {
3+
class ElizaLogger {
94
constructor() {
105
// Check if we're in Node.js environment
116
this.isNode =
@@ -180,7 +175,6 @@ class ElizaLogger implements IElizaLogger {
180175
}
181176
}
182177

183-
// @ts-expect-error- custom implementation
184178
log(...strings) {
185179
this.#logWithStyle(strings, {
186180
fg: "white",
@@ -190,7 +184,6 @@ class ElizaLogger implements IElizaLogger {
190184
});
191185
}
192186

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

203-
// @ts-expect-error- custom implementation
204196
error(...strings) {
205197
this.#logWithStyle(strings, {
206198
fg: "red",
@@ -210,7 +202,6 @@ class ElizaLogger implements IElizaLogger {
210202
});
211203
}
212204

213-
// @ts-expect-error- custom implementation
214205
info(...strings) {
215206
this.#logWithStyle(strings, {
216207
fg: "blue",
@@ -220,7 +211,6 @@ class ElizaLogger implements IElizaLogger {
220211
});
221212
}
222213

223-
// @ts-expect-error- custom implementation
224214
debug(...strings) {
225215
if (!this.verbose) return;
226216
this.#logWithStyle(strings, {

0 commit comments

Comments
 (0)