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:
Jonas Jenwald 2026-07-07 13:02:46 +02:00
parent 0d5a7d8adc
commit d29293622e

View File

@ -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();
}, },