Only show database log entries if task takes longer than 10ms
This commit is contained in:
parent
1755e0adfd
commit
6628b73911
1 changed files with 6 additions and 3 deletions
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in a new issue