diff --git a/cda-laboratorio-central/controller/operations.ts b/cda-laboratorio-central/controller/operations.ts index cf1fc3fa..848bad79 100644 --- a/cda-laboratorio-central/controller/operations.ts +++ b/cda-laboratorio-central/controller/operations.ts @@ -96,9 +96,7 @@ export async function postCDA(data: any) { } return (error || body); } catch (error) { - // Suspendemos los logs del post por demasiados registros de 500 - prestación existente - // await log.error('cda-laboratorio-central:postCDA', { error, options, payload: error.response?.body }, error.message, userScheduler); - return error; + await log.error('cda-laboratorio-central:postCDA', { error, data, payload: error.response?.body }, error.message, userScheduler); } } diff --git a/cda-laboratorios/controller/import-labs.ts b/cda-laboratorios/controller/import-labs.ts index 81fb1830..b1b123ea 100644 --- a/cda-laboratorios/controller/import-labs.ts +++ b/cda-laboratorios/controller/import-labs.ts @@ -117,8 +117,6 @@ export async function importarDatos(paciente) { } } catch (e) { await log.error('cda-laboratorios:import:laboratorios', { error: e, paciente }, e.message, userScheduler); - // No va return porque sigue con el proximo laboratorio dentro del for - // return false; } } } diff --git a/cda-laboratorios/controller/operations.ts b/cda-laboratorios/controller/operations.ts index 1fbe633e..aec8fa95 100644 --- a/cda-laboratorios/controller/operations.ts +++ b/cda-laboratorios/controller/operations.ts @@ -85,7 +85,7 @@ export function postCDA(data: any) { request(options, async (error, response, body) => { if (error) { - await log.error('cda-laboratorios:import:postCDA', { error, options }, error.message, userScheduler); + await log.error('cda-laboratorios:import:postCDA', { error, data }, error.message, userScheduler); } if (response.statusCode >= 200 && response.statusCode < 300) { return resolve(body); diff --git a/profesional_sisa/service/operaciones.service.ts b/profesional_sisa/service/operaciones.service.ts index 83c16090..8ef8904d 100644 --- a/profesional_sisa/service/operaciones.service.ts +++ b/profesional_sisa/service/operaciones.service.ts @@ -25,7 +25,7 @@ export async function postProfesionalSISA(profesional: any) { } return (error || body); } catch (error) { - log.error('profesional_sisa:postProfesionalSISA', { error, options }, error.message, userScheduler); + log.error('profesional_sisa:postProfesionalSISA', { error, data }, error.message, userScheduler); } } @@ -48,7 +48,7 @@ export async function getProfesional(idProfesional) { return null; } } catch (error) { - log.error('profesional_sisa:getProfesional', { error, url, options }, error.message, userScheduler); + log.error('profesional_sisa:getProfesional', { error, url }, error.message, userScheduler); } } @@ -69,7 +69,7 @@ export async function getProfesion(codigo) { return null; } } catch (error) { - log.error('profesional_sisa:getProfesion', { error, url, options }, error.message, userScheduler); + log.error('profesional_sisa:getProfesion', { error, url }, error.message, userScheduler); } }