From 8f22babfccced0c3a301213679ff98bed0c6f155 Mon Sep 17 00:00:00 2001 From: sachaaaaa Date: Fri, 30 Nov 2018 15:54:05 +1100 Subject: [PATCH] More log level finetuning --- js/modules/data.js | 6 +++--- js/signal_protocol_store.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/js/modules/data.js b/js/modules/data.js index f61ccfdd5..1002a743c 100644 --- a/js/modules/data.js +++ b/js/modules/data.js @@ -242,7 +242,7 @@ function _makeJob(fnName) { const id = _jobCounter; if (_DEBUG) { - window.log.info(`SQL channel job ${id} (${fnName}) started`); + window.log.debug(`SQL channel job ${id} (${fnName}) started`); } _jobs[id] = { fnName, @@ -264,7 +264,7 @@ function _updateJob(id, data) { const end = Date.now(); const delta = end - start; if (delta > 10) { - window.log.info( + window.log.debug( `SQL channel job ${id} (${fnName}) succeeded in ${end - start}ms` ); } @@ -273,7 +273,7 @@ function _updateJob(id, data) { reject: error => { _removeJob(id); const end = Date.now(); - window.log.info( + window.log.warn( `SQL channel job ${id} (${fnName}) failed in ${end - start}ms` ); return reject(error); diff --git a/js/signal_protocol_store.js b/js/signal_protocol_store.js index 6e7bc52c3..94a5f2224 100644 --- a/js/signal_protocol_store.js +++ b/js/signal_protocol_store.js @@ -211,7 +211,7 @@ } } - window.log.error('Failed to fetch contact prekey:', pubKey); + window.log.warn('Failed to fetch contact prekey:', pubKey); return undefined; }, async loadContactPreKeys(filters) { @@ -226,7 +226,7 @@ })); } - window.log.error( + window.log.warn( 'Failed to fetch signed prekey with filters', filters ); @@ -308,7 +308,7 @@ })); } - window.log.error( + window.log.warn( 'Failed to fetch contact signed prekey with filters', filters ); @@ -327,7 +327,7 @@ confirmed: preKey.confirmed, }; } - window.log.error('Failed to fetch contact signed prekey:', pubKey); + window.log.warn('Failed to fetch contact signed prekey:', pubKey); return undefined; }, async loadSignedPreKeys() {