brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aledsage <>
Subject [GitHub] incubator-brooklyn pull request: CLI commands for manipulating cat...
Date Tue, 19 May 2015 11:35:35 GMT
Github user aledsage commented on a diff in the pull request:
    --- Diff: utils/common/src/main/java/brooklyn/util/javalang/ ---
    @@ -44,7 +46,15 @@ public static boolean removeShutdownHook(Thread hook) {
                 return Runtime.getRuntime().removeShutdownHook(hook);
             } catch (IllegalStateException e) {
                 // probably shutdown in progress
    -            log.debug("cannot remove shutdown hook "+hook+": "+e);
    +            String text = Exceptions.collapseText(e);
    +            if (text.contains("Shutdown in progress")) {
    +                if (log.isTraceEnabled()) {
    +                    log.trace("Could not remove shutdown hook "+hook+": "+text);
    --- End diff --
    Add trace and debug level, we should just include the entire stacktrace rather than truncating.
Otherwise we risk losing important information for debugging problems that customers send
via log files.

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 or file a JIRA ticket
with INFRA.

View raw message