From fc21d01b203d5fca9600b7f7c6a0e665e51d54ba Mon Sep 17 00:00:00 2001 From: Radek Sienkiewicz Date: Tue, 7 Jan 2025 18:38:02 +0100 Subject: [PATCH] Cleaner logs on agent startup --- agent/src/index.ts | 6 +----- packages/core/src/runtime.ts | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/agent/src/index.ts b/agent/src/index.ts index 53058cf4ec..2385875285 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -489,11 +489,7 @@ export async function createAgent( cache: ICacheManager, token: string ): Promise { - elizaLogger.success( - elizaLogger.successesTitle, - "Creating runtime for character", - character.name - ); + elizaLogger.log(`Creating runtime for character ${character.name}`); nodePlugin ??= createNodePlugin(); diff --git a/packages/core/src/runtime.ts b/packages/core/src/runtime.ts index 37bab24adf..5e6e1c5a82 100644 --- a/packages/core/src/runtime.ts +++ b/packages/core/src/runtime.ts @@ -264,7 +264,7 @@ export class AgentRuntime implements IAgentRuntime { this.ensureParticipantExists(this.agentId, this.agentId); }); - elizaLogger.success("Agent ID", this.agentId); + elizaLogger.success(`Agent ID: ${this.agentId}`); this.fetch = (opts.fetch as typeof fetch) ?? this.fetch;