Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sadilchamishka committed May 13, 2024
1 parent 1573c3c commit 70c2015
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public static class ApplicationManagement {
public static final String DELETE_OAUTH_APPLICATION_ACTION = "delete-oauth-application";
public static final String REGENERATE_CLIENT_SECRET_ACTION = "regenerate-client-secret";
public static final String UPDATE_APP_STATE_ACTION = "update-app-state";
public static final String CONSOLE_CLIENT_ID = "CONSOLE";
public static final String MY_ACCOUNT_CLIENT_ID = "MY_ACCOUNT";
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, WSO2 LLC. (https://www.wso2.com).
* Copyright (c) 2021-2024, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -50,6 +50,8 @@
import java.util.Map;
import java.util.UUID;

import static org.wso2.carbon.identity.central.log.mgt.utils.LogConstants.ApplicationManagement.CONSOLE_CLIENT_ID;
import static org.wso2.carbon.identity.central.log.mgt.utils.LogConstants.ApplicationManagement.MY_ACCOUNT_CLIENT_ID;
import static org.wso2.carbon.identity.central.log.mgt.utils.LogConstants.ENABLE_LOG_MASKING;
import static org.wso2.carbon.identity.central.log.mgt.utils.LogConstants.LOGGABLE_USER_CLAIMS;
import static org.wso2.carbon.identity.event.IdentityEventConstants.Event.PUBLISH_AUDIT_LOG;
Expand Down Expand Up @@ -151,7 +153,7 @@ public static void triggerDiagnosticLogEvent(String componentId, Map<String, Obj
if (clientID == null) {
clientID = (String) diagnosticLog.getInput().get("client_id");
}
if ("CONSOLE".equals(clientID) || "MY_ACCOUNT".equals(clientID)) {
if (CONSOLE_CLIENT_ID.equals(clientID) || MY_ACCOUNT_CLIENT_ID.equals(clientID)) {
return;
}
}
Expand Down

0 comments on commit 70c2015

Please sign in to comment.