Here is a simplified version of my code:
function caller( _func_to_call , param){
console.log( ` @@@> CALLING ${_func_to_call.toString()} `);
_func_to_call(param);
}
In this line:
console.log( ` @@@> CALLING ${_func_to_call.toString()} `);
I want to output the name of the function that its going to be called, but it's logging all the function with its content, like this:
@@@> CALLING async function start_transaction(transaction){
update_transaction_date(transaction);
var tab_id = `transaction-${transaction.id}`;
console.log(`----> START TRANSACTION ${tab_id}`);
...
How can I get it to only output start_transaction
?