From 482ccfc280c97280104bcfaa02d9967f59375e24 Mon Sep 17 00:00:00 2001 From: Zach Plata Date: Thu, 16 Mar 2017 12:41:20 -0400 Subject: [PATCH] Edit canadarm config --- app/load_fhir_data.js | 8 ++++---- app/polyfill.js | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/load_fhir_data.js b/app/load_fhir_data.js index a68e8ca..e9f5733 100644 --- a/app/load_fhir_data.js +++ b/app/load_fhir_data.js @@ -36,13 +36,13 @@ window.ASCVDRisk = window.ASCVDRisk || {}; ASCVDRisk.setDefaultPatient = setDefaultPatient; /** - * Initiate Canadarm logging for the application to output on the console and log specified - * Initiates the Canadarm logging tool to output logs to the console and - * the URL specified in the config.js file (root directory). + * Initializer function for Canadarm Logger. + * Initiates the Canadarm logging tool to output logs to the console. + * See further functionality for Canadarm at: https://github.com/cerner/canadarm */ const initializeLogger = () => { Canadarm.init({ - onError: false, + onError: true, wrapEvents: false, logLevel: Canadarm.level.INFO, appenders: [ diff --git a/app/polyfill.js b/app/polyfill.js index 73a892d..f48f93f 100644 --- a/app/polyfill.js +++ b/app/polyfill.js @@ -46,9 +46,6 @@ if (!Array.prototype.find) { if (typeof Object.assign !== 'function') { Object.assign = function (target, varArgs) { - // .length of function is 2 - - if (target == null) { // TypeError if undefined or null throw new TypeError('Cannot convert undefined or null to object'); }