const logalot = true; export async function fooFn(): Promise { const lc = `[${fooFn.name}]`; try { if (logalot) { console.log(`${lc} starting... (I: dfb1e864e0a8d029abab9418f249ed25)`); } } catch (error) { console.error(`${lc} ${error.message}`); throw error; } finally { if (logalot) { console.log(`${lc} complete.`); } } }