Replaced std out to logger 63/75263/1
authorChandan Ghosh <cghosh12@in.ibm.com>
Fri, 4 Jan 2019 07:22:52 +0000 (12:52 +0530)
committerChandan Ghosh <cghosh12@in.ibm.com>
Fri, 4 Jan 2019 07:22:58 +0000 (12:52 +0530)
Replaced std out with logger reported in sonar

Issue-ID: DMAAP-927
Change-Id: I5203d7700389ce5c67b15be8ef08fcae721891c9
Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
src/main/java/org/onap/dmaap/mr/dmaapMMAgent/utils/MirrorMakerProcessHandler.java

index 21a3974..37e0981 100644 (file)
@@ -55,7 +55,7 @@ public class MirrorMakerProcessHandler {
                        BufferedReader br = new BufferedReader(isr);
                         
                        while ((line = br.readLine()) != null) {
-                               System.out.println(line);
+                               logger.info(line);
                //              if (line.contains("agentname=" + agentname) && line.contains("/bin/sh -c") == false) {
                                        
                                        //If enablelogCheck Check MirrorMaker log for errors and restart mirrormaker

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use