[JIRA] (MDA-282) Add progress logging for CompositeStage and SimplePipeline
Ian Young (Jira)
jira at shibboleth.atlassian.net
Wed Mar 29 11:42:54 UTC 2023
Ian Young ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae127cb03-43ed-473d-b6ba-592949cb4be8 ) *commented* on MDA-282 ( https://shibboleth.atlassian.net/browse/MDA-282?atlOrigin=eyJpIjoiNWVjYzFhNjI4Nzc2NDdlN2FmYTkxMTY4NWU5NTRjNzIiLCJwIjoiaiJ9 )
Re: Add progress logging for CompositeStage and SimplePipeline ( https://shibboleth.atlassian.net/browse/MDA-282?atlOrigin=eyJpIjoiNWVjYzFhNjI4Nzc2NDdlN2FmYTkxMTY4NWU5NTRjNzIiLCJwIjoiaiJ9 )
This is what I’ve tried; needs to be converted to a property:
for (final Stage<T> stage : getStages()) {
if (log.isInfoEnabled()) {
final var stageStart = Instant.now();
log.info("{} >>> {}, count={}", getId(), stage.getId(), items.size());
stage.execute(items);
final var stageEnd = Instant.now();
final var stageTime = Duration.between(stageStart, stageEnd);
log.info("{} <<< {}, count={}, duration={}", getId(), stage.getId(),
items.size(), stageTime);
} else {
stage.execute(items);
}
}
( https://shibboleth.atlassian.net/browse/MDA-282#add-comment?atlOrigin=eyJpIjoiNWVjYzFhNjI4Nzc2NDdlN2FmYTkxMTY4NWU5NTRjNzIiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/MDA-282#add-comment?atlOrigin=eyJpIjoiNWVjYzFhNjI4Nzc2NDdlN2FmYTkxMTY4NWU5NTRjNzIiLCJwIjoiaiJ9 )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100219- sha1:6a6077b )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20230329/91c30a55/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-c697621f-9434-4d8e-86f1-ccdba5358869
Type: image/png
Size: 302 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230329/91c30a55/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-c06e4220-a176-45ea-b36e-1429cdd07be0
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230329/91c30a55/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-f4e44476-5c0e-4cc6-9356-1ec049d4294b
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230329/91c30a55/attachment-0005.png>
More information about the commits
mailing list