diff options
author | xuegao <xg353y@intl.att.com> | 2019-10-07 14:36:34 +0200 |
---|---|---|
committer | xuegao <xg353y@intl.att.com> | 2019-10-07 14:36:34 +0200 |
commit | 0efeb6b141cb4abe84af8eb38e26d5ed1ab73bb0 (patch) | |
tree | 8c716d7b22828b13a796aa924b1e156a51b9e420 /ui-react/src/api | |
parent | 52432d6512d2477ad16d46f5ab31a8f77e9f77bd (diff) |
Fix Sonar vulnerabilities
Fix the vulnerabilities reported by Sonar.
Issue-ID: CLAMP-530
Change-Id: I9f6a7fe9ce042045085c371ef3777188b11ffb36
Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'ui-react/src/api')
-rw-r--r-- | ui-react/src/api/LoopActionService.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui-react/src/api/LoopActionService.js b/ui-react/src/api/LoopActionService.js index 7e20e2f6..7cea3ff9 100644 --- a/ui-react/src/api/LoopActionService.js +++ b/ui-react/src/api/LoopActionService.js @@ -24,7 +24,7 @@ export default class LoopActionService{ static performAction(cl_name, uiAction) { - console.log("LoopActionService perform action: " + uiAction + " closedloopName=" + cl_name); + console.info("LoopActionService perform action: " + uiAction + " closedloopName=" + cl_name); const svcAction = uiAction.toLowerCase(); return fetch("/restservices/clds/v2/loop/" + svcAction + "/" + cl_name, { method: 'PUT', @@ -38,18 +38,18 @@ export default class LoopActionService{ } }) .then(function (data) { - alert("Action Successful: " + uiAction); + console.info("Action Successful: " + uiAction); return data; }) .catch(function(error) { - console.log("Action Failure: " + uiAction); + console.info("Action Failure: " + uiAction); return Promise.reject(error); }); } static refreshStatus(cl_name) { - console.log("Refresh the status for closedloopName=" + cl_name); + console.info("Refresh the status for closedloopName=" + cl_name); return fetch("/restservices/clds/v2/loop/getstatus/" + cl_name, { method: 'GET', |