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,
|
||||
})
|
||||
.then(
|
||||
operatorListInfo => {
|
||||
opListInfo => {
|
||||
if (start) {
|
||||
info(
|
||||
`page=${pageIndex + 1} - getOperatorList: time=` +
|
||||
`${Date.now() - start}ms, len=${operatorListInfo.length}`
|
||||
`${task.name}; time=${Date.now() - start}ms, len=${opListInfo.length}`
|
||||
);
|
||||
}
|
||||
sink.close();
|
||||
@ -959,10 +958,7 @@ class WorkerMessageHandler {
|
||||
.then(
|
||||
() => {
|
||||
if (start) {
|
||||
info(
|
||||
`page=${pageIndex + 1} - getTextContent: time=` +
|
||||
`${Date.now() - start}ms`
|
||||
);
|
||||
info(`${task.name}; time=${Date.now() - start}ms`);
|
||||
}
|
||||
sink.close();
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user