fix(striker-ui-api): refine logs in access module

main
Tsu-ba-me 1 year ago
parent d0c1de9c5f
commit 7a2d1776f7
  1. 6
      striker-ui-api/src/lib/accessModule.ts

@ -105,11 +105,13 @@ class Access extends EventEmitter {
return reject(`Failed to parse line ${scriptId}; got [${data}]`); return reject(`Failed to parse line ${scriptId}; got [${data}]`);
} }
shvar({ result }, `Access interact ${scriptId} returns: `);
return resolve(result); return resolve(result);
}); });
}); });
shvar({ scriptId, script }, 'Access interact: '); shvar({ script }, 'Access interact: ');
stdin?.write(script); stdin?.write(script);
@ -151,8 +153,6 @@ const subroutine = async <T extends unknown[]>(
sub_results: T; sub_results: T;
}>('x', chain, ...subParams); }>('x', chain, ...subParams);
shvar(results, `${chain} results: `);
return results; return results;
}; };

Loading…
Cancel
Save