dial the logging down a notch

pull/614/head
sachaaaaa 5 years ago
parent 6611a10855
commit c9e3757381

@ -286,13 +286,13 @@ function _updateJob(id, data) {
...data,
resolve: value => {
_removeJob(id);
const end = Date.now();
const delta = end - start;
if (delta > 10) {
window.log.debug(
`SQL channel job ${id} (${fnName}) succeeded in ${end - start}ms`
);
}
// const end = Date.now();
// const delta = end - start;
// if (delta > 10) {
// window.log.debug(
// `SQL channel job ${id} (${fnName}) succeeded in ${end - start}ms`
// );
// }
return resolve(value);
},
reject: error => {

@ -25,7 +25,8 @@ const logger = createLogger({
});
// Exclude logger if we're in production mode
const middlewareList = env === 'production' ? [promise] : [promise, logger];
const disableLogging = true || env === 'production'; // ALWAYS TURNED OFF
const middlewareList = disableLogging ? [promise] : [promise, logger];
const enhancer = applyMiddleware.apply(null, middlewareList);

Loading…
Cancel
Save