Skip to content

Commit

Permalink
Disable logging of fetch requests to avoid disclosing sensitive infor…
Browse files Browse the repository at this point in the history
…mation
  • Loading branch information
jzvikart committed Dec 17, 2024
1 parent 6d24565 commit c558ad6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export const wait = (minTime: number = 1000, maxTime: number = 3000) => {

const logFetch = async (url: string, options: any) => {
elizaLogger.info(`Fetching ${url}`);
elizaLogger.info(JSON.stringify(options, null, 2));
// Disabled to avoid disclosure of sensitive information such as API keys
// elizaLogger.info(JSON.stringify(options, null, 2));
return fetch(url, options);
};

Expand Down

0 comments on commit c558ad6

Please sign in to comment.