Skip to content

Commit ba10eb0

Browse files
committed
chore: console -> elizaLogger
1 parent ab20cad commit ba10eb0

File tree

1 file changed

+4
-4
lines changed
  • packages/plugin-evm/src/actions

1 file changed

+4
-4
lines changed

packages/plugin-evm/src/actions/swap.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export class SwapAction {
167167
swapData: routes.routes[0],
168168
};
169169
} catch (error) {
170-
console.debug("Error in getLifiQuote:", error.message);
170+
elizaLogger.error("Error in getLifiQuote:", error.message);
171171
return undefined;
172172
}
173173
}
@@ -223,7 +223,7 @@ export class SwapAction {
223223
swapData: route,
224224
};
225225
} catch (error) {
226-
console.debug("Error in getBebopQuote:", error.message);
226+
elizaLogger.error("Error in getBebopQuote:", error.message);
227227
return undefined;
228228
}
229229
}
@@ -355,7 +355,7 @@ export const swapAction = {
355355
_options: any,
356356
callback?: any
357357
) => {
358-
console.log("Swap action handler called");
358+
elizaLogger.log("Swap action handler called");
359359
const walletProvider = await initWalletProvider(runtime);
360360
const action = new SwapAction(walletProvider);
361361

@@ -393,7 +393,7 @@ export const swapAction = {
393393
}
394394
return true;
395395
} catch (error) {
396-
console.error("Error in swap handler:", error.message);
396+
elizaLogger.error("Error in swap handler:", error.message);
397397
if (callback) {
398398
callback({ text: `Error: ${error.message}` });
399399
}

0 commit comments

Comments
 (0)