Only show database log entries if task takes longer than 10ms
This commit is contained in:
@@ -196,9 +196,12 @@ function _updateJob(id, data) {
|
|||||||
resolve: value => {
|
resolve: value => {
|
||||||
_removeJob(id);
|
_removeJob(id);
|
||||||
const end = Date.now();
|
const end = Date.now();
|
||||||
window.log.info(
|
const delta = end - start;
|
||||||
`SQL channel job ${id} (${fnName}) succeeded in ${end - start}ms`
|
if (delta > 10) {
|
||||||
);
|
window.log.info(
|
||||||
|
`SQL channel job ${id} (${fnName}) succeeded in ${end - start}ms`
|
||||||
|
);
|
||||||
|
}
|
||||||
return resolve(value);
|
return resolve(value);
|
||||||
},
|
},
|
||||||
reject: error => {
|
reject: error => {
|
||||||
|
Reference in New Issue
Block a user