@@ -46,11 +46,11 @@ public CxWrapper(@NonNull CxConfig cxConfig, @NonNull Logger logger) throws CxCo
46
46
this .executable = StringUtils .isBlank (this .cxConfig .getPathToExecutable ())
47
47
? Execution .getTempBinary ()
48
48
: this .cxConfig .getPathToExecutable ();
49
- this .logger .info ("using executable : " + executable );
49
+ this .logger .info ("Executable path : " + executable );
50
50
}
51
51
52
52
public String authValidate () throws IOException , InterruptedException , CxException {
53
- this .logger .info ("initialized authentication validation command" );
53
+ this .logger .info ("Executing 'auth validate' command using the CLI. " );
54
54
55
55
List <String > arguments = new ArrayList <>();
56
56
arguments .add (CxConstants .CMD_AUTH );
@@ -60,7 +60,7 @@ public String authValidate() throws IOException, InterruptedException, CxExcepti
60
60
}
61
61
62
62
public Scan scanShow (@ NonNull UUID scanId ) throws IOException , InterruptedException , CxException {
63
- this .logger .info ("initialized scan retrieval for id: {}" , scanId );
63
+ this .logger .info ("Retrieving the details for scan id: {}" , scanId );
64
64
65
65
List <String > arguments = new ArrayList <>();
66
66
arguments .add (CxConstants .CMD_SCAN );
@@ -77,7 +77,7 @@ public List<Scan> scanList() throws IOException, InterruptedException, CxExcepti
77
77
}
78
78
79
79
public List <Scan > scanList (String filter ) throws IOException , InterruptedException , CxException {
80
- this .logger .info ("initialized retrieval for scan list {}" , filter );
80
+ this .logger .info ("Fetching the scan list using the filter: {}" , filter );
81
81
82
82
List <String > arguments = new ArrayList <>();
83
83
arguments .add (CxConstants .CMD_SCAN );
@@ -94,12 +94,13 @@ public Scan scanCreate(@NonNull Map<String, String> params) throws IOException,
94
94
95
95
public Scan scanCreate (@ NonNull Map <String , String > params , String additionalParameters )
96
96
throws IOException , InterruptedException , CxException {
97
- this .logger .info ("initialized scan create command" );
97
+ this .logger .info ("Executing ' scan create' command using the CLI. " );
98
98
99
99
List <String > arguments = new ArrayList <>();
100
100
arguments .add (CxConstants .CMD_SCAN );
101
101
arguments .add (CxConstants .SUB_CMD_CREATE );
102
- arguments .addAll (jsonArguments ());
102
+ arguments .add (CxConstants .SCAN_INFO_FORMAT );
103
+ arguments .add (CxConstants .FORMAT_JSON );
103
104
104
105
for (Map .Entry <String , String > param : params .entrySet ()) {
105
106
arguments .add (param .getKey ());
@@ -112,7 +113,8 @@ public Scan scanCreate(@NonNull Map<String, String> params, String additionalPar
112
113
}
113
114
114
115
public List <Predicate > triageShow (@ NonNull UUID projectId , String similarityId , String scanType ) throws IOException , InterruptedException , CxException {
115
- this .logger .info ("initialized triage for project with id: {}" , projectId );
116
+ this .logger .info ("Executing 'triage show' command using the CLI." );
117
+ this .logger .info ("Fetching the list of predicates for projectId {} , similarityId {} and scan-type {}.," , projectId , similarityId , scanType );
116
118
117
119
List <String > arguments = new ArrayList <>();
118
120
arguments .add (CxConstants .CMD_TRIAGE );
@@ -130,7 +132,8 @@ public List<Predicate> triageShow(@NonNull UUID projectId, String similarityId,
130
132
}
131
133
132
134
public void triageUpdate (@ NonNull UUID projectId , String similarityId , String scanType , String state , String comment , String severity ) throws IOException , InterruptedException , CxException {
133
- this .logger .info ("initialized triage update project with id: {}" , projectId );
135
+ this .logger .info ("Executing 'triage update' command using the CLI." );
136
+ this .logger .info ("Updating the similarityId {} with state {} and severity {}." , similarityId , state , severity );
134
137
135
138
List <String > arguments = new ArrayList <>();
136
139
arguments .add (CxConstants .CMD_TRIAGE );
@@ -154,7 +157,7 @@ public void triageUpdate(@NonNull UUID projectId, String similarityId, String sc
154
157
}
155
158
156
159
public Project projectShow (@ NonNull UUID projectId ) throws IOException , InterruptedException , CxException {
157
- this .logger .info ("initialized project retrieval for id: {}" , projectId );
160
+ this .logger .info ("Retrieving the details for project id: {}" , projectId );
158
161
159
162
List <String > arguments = new ArrayList <>();
160
163
arguments .add (CxConstants .CMD_PROJECT );
@@ -171,7 +174,7 @@ public List<Project> projectList() throws IOException, InterruptedException, CxE
171
174
}
172
175
173
176
public List <Project > projectList (String filter ) throws IOException , InterruptedException , CxException {
174
- this .logger .info ("initialized retrieval for project list {}" , filter );
177
+ this .logger .info ("Fetching the project list using the filter: {}" , filter );
175
178
176
179
List <String > arguments = new ArrayList <>();
177
180
arguments .add (CxConstants .CMD_PROJECT );
@@ -184,7 +187,7 @@ public List<Project> projectList(String filter) throws IOException, InterruptedE
184
187
185
188
public List <String > projectBranches (@ NonNull UUID projectId , String filter )
186
189
throws CxException , IOException , InterruptedException {
187
- this .logger .info ("initialized retrieval for project branches {}" , filter );
190
+ this .logger .info ("Fetching the branches for project id {} using the filter: {}" , projectId , filter );
188
191
189
192
List <String > arguments = new ArrayList <>();
190
193
arguments .add (CxConstants .CMD_PROJECT );
@@ -212,7 +215,7 @@ public Results results(@NonNull UUID scanId) throws IOException, InterruptedExce
212
215
213
216
public String results (@ NonNull UUID scanId , ReportFormat reportFormat )
214
217
throws IOException , InterruptedException , CxException {
215
- this .logger .info ("initialized results command {}" , reportFormat );
218
+ this .logger .info ("Retrieving the scan result for scan id {}" , scanId );
216
219
217
220
String tempDir = Files .createTempDirectory ("cx" ).toAbsolutePath ().toString ();
218
221
String fileName = Long .toString (System .nanoTime ());
0 commit comments