978c71e3182278d89c6d18675fa8f11d091da840
[ccsdk/features.git] / sdnr / wt / devicemanager-onap / onf14 / provider / src / main / java / org / onap / ccsdk / features / sdnr / wt / devicemanager / onf14 / dom / impl / util / Debug.java
1 /*
2  * ============LICENSE_START=======================================================
3  * ONAP : ccsdk features
4  * ================================================================================
5  * Copyright (C) 2020 highstreet technologies GmbH Intellectual Property.
6  * All rights reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *     http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  *
21  */
22 package org.onap.ccsdk.features.sdnr.wt.devicemanager.onf14.dom.impl.util;
23
24 import org.onap.ccsdk.features.sdnr.wt.devicemanager.types.FaultData;
25 import org.slf4j.Logger;
26 import org.slf4j.LoggerFactory;
27
28 public class Debug {
29
30     // constants
31     private static final Logger log = LoggerFactory.getLogger(Debug.class);
32     // end of constants
33
34     // variables
35     // end of variables
36
37     // constructors
38     // end of constructors
39
40     // getters and setters
41     // end of getters and setters
42
43     // private methods
44     // end of private methods
45
46     // public methods
47     /**
48      * LOG the newly added problems of the interface pac
49      *
50      * @param idxStart
51      * @param uuid
52      * @param resultList
53      */
54     public static void debugResultList(String uuid, FaultData resultList, int idxStart) {
55         StringBuilder sb = new StringBuilder();
56         int idx = 0;
57         for (int t = idxStart; t < resultList.size(); t++) {
58             sb.append(idx++);
59             sb.append(":{");
60             sb.append(resultList.get(t));
61             sb.append('}');
62         }
63         log.debug("Found problems {} {}", uuid, sb);
64     }
65     // end of public methods
66
67     // static methods
68     // end of static methods
69
70     // private classes
71     // end of private classes
72 }