add debug info when calling js handler
Some checks failed
Build && Deploy / cargo build (push) Has been cancelled
Some checks failed
Build && Deploy / cargo build (push) Has been cancelled
This commit is contained in:
parent
126708d8fa
commit
f5d108d350
@ -75,6 +75,11 @@ async fn handle_botmessage(bot: Bot, mut db: DB, bm: BotMessage, msg: Message) -
|
|||||||
None => break 'prop true,
|
None => break 'prop true,
|
||||||
};
|
};
|
||||||
let jsuser = to_js(ctx, &tguser).unwrap();
|
let jsuser = to_js(ctx, &tguser).unwrap();
|
||||||
|
info!(
|
||||||
|
"Calling handler {:?} with msg literal: {:?}",
|
||||||
|
handler,
|
||||||
|
bm.literal()
|
||||||
|
);
|
||||||
match handler.call_args(vec![jsuser]) {
|
match handler.call_args(vec![jsuser]) {
|
||||||
Ok(v) => {
|
Ok(v) => {
|
||||||
if v.is_bool() {
|
if v.is_bool() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user