Skip to content

Commit 8d272d6

Browse files
Fix AST-136023: Route authentication logs to Eclipse Error Log
Replace SLF4J log calls in Authenticator.doAuthentication() with CxLogger so auth success/failure messages appear in .metadata/.log and the Eclipse Error Log UI instead of being silently dropped. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 1b94a50 commit 8d272d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

checkmarx-ast-eclipse-plugin/src/com/checkmarx/eclipse/runner/Authenticator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ public String doAuthentication(String apiKey, String additionalParams) {
3333
try {
3434
CxWrapper wrapper = new CxWrapper(config, log);
3535
String cxValidateOutput = wrapper.authValidate();
36-
log.info(AUTH_STATUS + cxValidateOutput);
36+
CxLogger.info(AUTH_STATUS + cxValidateOutput);
3737
return cxValidateOutput;
3838
} catch (IOException | InterruptedException | CxException e) {
39-
log.error(String.format(PluginConstants.ERROR_AUTHENTICATING_AST, e.getMessage()), e);
39+
CxLogger.error(String.format(PluginConstants.ERROR_AUTHENTICATING_AST, e.getMessage()), e);
4040
return e.getMessage();
4141
}
4242
}

0 commit comments

Comments
 (0)