Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1199

dev:watch command issues "[WATCH]" announcements only to the issuing shell

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2.4
    • Fix Version/s: 2.2.6, 3.0.0
    • Component/s: karaf-shell
    • Labels:
      None

      Description

      If I issue a "dev:watch *" command and later update one of my snapshot bundles, the announcement of that change is emitted in the context of the shell that issued the command. That is, if I issue it in the Gogo ssh shell, then the "[WATCH] ..." announcement goes to that shell. If I trigger the Watch service programmatically, then the announcement goes to the system console.

      Instead, I think the announcement should go to the log subsystem. The root cause is that org.apache.karaf.shell.dev.BundleWatcher uses System.out.println() to emit this message, which is routed by Gogo.

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              cdolan Chris Dolan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: