mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-11 00:33:40 +00:00
chore: update logging scope in agent log handlers
Changed log scope from `[agentus:${data.scope}]` to `[agents:${data.scope}]` in both the callbacks and responses controllers to ensure consistent logging format across the application.
This commit is contained in:
parent
fb0ca3eee7
commit
ef7f9f1b14
2 changed files with 2 additions and 2 deletions
|
|
@ -286,7 +286,7 @@ function getDefaultHandlers({
|
|||
handlers[GraphEvents.ON_AGENT_LOG] = {
|
||||
handle: (_event, data) => {
|
||||
const logFn = typeof logger[data.level] === 'function' ? logger[data.level] : logger.info;
|
||||
logFn(`[agentus:${data.scope}] ${data.message}`, {
|
||||
logFn(`[agents:${data.scope}] ${data.message}`, {
|
||||
...data.data,
|
||||
runId: data.runId,
|
||||
agentId: data.agentId,
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ function setAppConfig(config) {
|
|||
const agentLogHandler = {
|
||||
handle: (_event, data) => {
|
||||
const logFn = typeof logger[data.level] === 'function' ? logger[data.level] : logger.info;
|
||||
logFn(`[agentus:${data.scope}] ${data.message}`, {
|
||||
logFn(`[agents:${data.scope}] ${data.message}`, {
|
||||
...data.data,
|
||||
runId: data.runId,
|
||||
agentId: data.agentId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue