Commit 1d8b4f8 1 parent 1fbc31a commit 1d8b4f8 Copy full SHA for 1d8b4f8
File tree 1 file changed +4
-3
lines changed
packages/plugin-lightning/src/actions
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
composeContext ,
4
4
generateObjectV2 ,
5
5
ModelClass ,
6
+ elizaLogger
6
7
} from "@elizaos/core" ;
7
8
8
9
import {
@@ -62,7 +63,7 @@ export const payInvoiceAction = {
62
63
_options : any ,
63
64
callback ?: any
64
65
) => {
65
- console . log ( "payInvoice action handler called" ) ;
66
+ elizaLogger . log ( "payInvoice action handler called" ) ;
66
67
const lightningProvider = await initLightningProvider ( runtime ) ;
67
68
const action = new PayInvoiceAction ( lightningProvider ) ;
68
69
@@ -84,7 +85,7 @@ export const payInvoiceAction = {
84
85
85
86
try {
86
87
const payInvoiceResp = await action . payInvoice ( payInvoiceOptions ) ;
87
- console . log ( "🚀 ~ payInvoiceResp:" , payInvoiceResp ) ;
88
+ elizaLogger . log ( "🚀 ~ payInvoiceResp:" , payInvoiceResp ) ;
88
89
89
90
if ( callback ) {
90
91
let text = "" ;
@@ -102,7 +103,7 @@ export const payInvoiceAction = {
102
103
}
103
104
return true ;
104
105
} catch ( error ) {
105
- console . error ( "Error in payInvoice handler:" , error ) ;
106
+ elizaLogger . error ( "Error in payInvoice handler:" , error ) ;
106
107
if ( callback ) {
107
108
callback ( { text : `Error: ${ error . message || 'An error occurred' } ` } ) ;
108
109
}
You can’t perform that action at this time.
0 commit comments