@@ -46,11 +46,11 @@ public CxWrapper(@NonNull CxConfig cxConfig, @NonNull Logger logger) throws CxCo
4646 this .executable = StringUtils .isBlank (this .cxConfig .getPathToExecutable ())
4747 ? Execution .getTempBinary ()
4848 : this .cxConfig .getPathToExecutable ();
49- this .logger .info ("using executable : " + executable );
49+ this .logger .info ("Executable path : " + executable );
5050 }
5151
5252 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. " );
5454
5555 List <String > arguments = new ArrayList <>();
5656 arguments .add (CxConstants .CMD_AUTH );
@@ -60,7 +60,7 @@ public String authValidate() throws IOException, InterruptedException, CxExcepti
6060 }
6161
6262 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 );
6464
6565 List <String > arguments = new ArrayList <>();
6666 arguments .add (CxConstants .CMD_SCAN );
@@ -77,7 +77,7 @@ public List<Scan> scanList() throws IOException, InterruptedException, CxExcepti
7777 }
7878
7979 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 );
8181
8282 List <String > arguments = new ArrayList <>();
8383 arguments .add (CxConstants .CMD_SCAN );
@@ -94,12 +94,13 @@ public Scan scanCreate(@NonNull Map<String, String> params) throws IOException,
9494
9595 public Scan scanCreate (@ NonNull Map <String , String > params , String additionalParameters )
9696 throws IOException , InterruptedException , CxException {
97- this .logger .info ("initialized scan create command" );
97+ this .logger .info ("Executing ' scan create' command using the CLI. " );
9898
9999 List <String > arguments = new ArrayList <>();
100100 arguments .add (CxConstants .CMD_SCAN );
101101 arguments .add (CxConstants .SUB_CMD_CREATE );
102- arguments .addAll (jsonArguments ());
102+ arguments .add (CxConstants .SCAN_INFO_FORMAT );
103+ arguments .add (CxConstants .FORMAT_JSON );
103104
104105 for (Map .Entry <String , String > param : params .entrySet ()) {
105106 arguments .add (param .getKey ());
@@ -112,7 +113,8 @@ public Scan scanCreate(@NonNull Map<String, String> params, String additionalPar
112113 }
113114
114115 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 );
116118
117119 List <String > arguments = new ArrayList <>();
118120 arguments .add (CxConstants .CMD_TRIAGE );
@@ -130,7 +132,8 @@ public List<Predicate> triageShow(@NonNull UUID projectId, String similarityId,
130132 }
131133
132134 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 );
134137
135138 List <String > arguments = new ArrayList <>();
136139 arguments .add (CxConstants .CMD_TRIAGE );
@@ -154,7 +157,7 @@ public void triageUpdate(@NonNull UUID projectId, String similarityId, String sc
154157 }
155158
156159 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 );
158161
159162 List <String > arguments = new ArrayList <>();
160163 arguments .add (CxConstants .CMD_PROJECT );
@@ -171,7 +174,7 @@ public List<Project> projectList() throws IOException, InterruptedException, CxE
171174 }
172175
173176 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 );
175178
176179 List <String > arguments = new ArrayList <>();
177180 arguments .add (CxConstants .CMD_PROJECT );
@@ -184,7 +187,7 @@ public List<Project> projectList(String filter) throws IOException, InterruptedE
184187
185188 public List <String > projectBranches (@ NonNull UUID projectId , String filter )
186189 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 );
188191
189192 List <String > arguments = new ArrayList <>();
190193 arguments .add (CxConstants .CMD_PROJECT );
@@ -212,7 +215,7 @@ public Results results(@NonNull UUID scanId) throws IOException, InterruptedExce
212215
213216 public String results (@ NonNull UUID scanId , ReportFormat reportFormat )
214217 throws IOException , InterruptedException , CxException {
215- this .logger .info ("initialized results command {}" , reportFormat );
218+ this .logger .info ("Retrieving the scan result for scan id {}" , scanId );
216219
217220 String tempDir = Files .createTempDirectory ("cx" ).toAbsolutePath ().toString ();
218221 String fileName = Long .toString (System .nanoTime ());
0 commit comments