diff --git a/src/lib/ae_core/core__crud_generic.ts b/src/lib/ae_core/core__crud_generic.ts index 42639056..2a967837 100644 --- a/src/lib/ae_core/core__crud_generic.ts +++ b/src/lib/ae_core/core__crud_generic.ts @@ -243,13 +243,13 @@ export async function update_ae_obj_id_crud_v2({ }); if (!results) { - console.log( + if (log_lvl) console.log( `Not Patched - Field Name: ${field_name} with new Field Value: ${new_field_value}; Account ID: ${api_cfg.account_id}` ); return false; } - console.log(`Patched - Field Name: ${field_name} with new Field Value: ${new_field_value}`); + if (log_lvl) console.log(`Patched - Field Name: ${field_name} with new Field Value: ${new_field_value}`); if (object_reload) { if (log_lvl) console.log(`Reloading the object after patching...`);