mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-09 00:25:51 +02:00
Shorten the info-logging in the "GetOperatorList" and "GetTextContent" handlers
By re-using the `WorkerTask`-names these disabled-by-default logging statements become ever so slightly shorter, which cannot hurt.
This commit is contained in:
parent
0d5a7d8adc
commit
d29293622e
@ -915,11 +915,10 @@ class WorkerMessageHandler {
|
|||||||
pageIndex,
|
pageIndex,
|
||||||
})
|
})
|
||||||
.then(
|
.then(
|
||||||
operatorListInfo => {
|
opListInfo => {
|
||||||
if (start) {
|
if (start) {
|
||||||
info(
|
info(
|
||||||
`page=${pageIndex + 1} - getOperatorList: time=` +
|
`${task.name}; time=${Date.now() - start}ms, len=${opListInfo.length}`
|
||||||
`${Date.now() - start}ms, len=${operatorListInfo.length}`
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
sink.close();
|
sink.close();
|
||||||
@ -959,10 +958,7 @@ class WorkerMessageHandler {
|
|||||||
.then(
|
.then(
|
||||||
() => {
|
() => {
|
||||||
if (start) {
|
if (start) {
|
||||||
info(
|
info(`${task.name}; time=${Date.now() - start}ms`);
|
||||||
`page=${pageIndex + 1} - getTextContent: time=` +
|
|
||||||
`${Date.now() - start}ms`
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
sink.close();
|
sink.close();
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user