Github user yaojiefeng commented on a diff in the pull request: https://github.com/apache/twill/pull/14#discussion_r86286137 --- Diff: twill-core/src/main/java/org/apache/twill/internal/DefaultResourceReport.java --- @@ -158,4 +174,31 @@ public String toString() { ", services=" + services + '}'; } + + private TwillRunResources wrapTwillRunResources(final String runnableName, TwillRunResources resources) { --- End diff -- The `logLevels` for all running containers are stored in `ResourceReport`, and `ResourceReport` have a map containing the `TwillRunResources` for each running runnable. We want to return the correct log levels for each runnable. So we wrap the `TwillRunResources` with `ForwardingTwillRunResources`, which has a delegation and we override the `getLogLevels` methods to get the log levels from the map in `ResourceReport`.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---